Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #2565 > unrolled thread

error message I don understand

Started by"liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com>
First post2011-07-15 14:38 +0000
Last post2011-07-18 21:29 +0200
Articles 20 on this page of 54 — 13 participants

Back to article view | Back to comp.lang.php


Contents

  error message I don understand "liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com> - 2011-07-15 14:38 +0000
    Re: error message I don understand Billy Mays <81282ed9a88799d21e77957df2d84bd6514d9af6@myhashismyemail.com> - 2011-07-15 10:44 -0400
      Re: error message I don understand "liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com> - 2011-07-15 17:26 +0000
        Re: error message I don understand The Natural Philosopher <tnp@invalid.invalid> - 2011-07-15 18:45 +0100
          Re: error message I don understand "liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com> - 2011-07-15 18:36 +0000
            Re: error message I don understand VanguardLH <V@nguard.LH> - 2011-07-15 14:25 -0500
              Re: error message I don understand The Natural Philosopher <tnp@invalid.invalid> - 2011-07-15 21:36 +0100
                Re: error message I don understand "liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com> - 2011-07-16 09:17 +0000
                  Re: error message I don understand The Natural Philosopher <tnp@invalid.invalid> - 2011-07-16 13:52 +0100
                Re: error message I don understand Heinrich Käsner <heinkasner@gmail.com> - 2011-08-02 07:02 -0700
            Re: error message I don understand The Natural Philosopher <tnp@invalid.invalid> - 2011-07-15 21:35 +0100
            Re: error message I don understand Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-16 09:30 -0400
              Re: error message I don understand "liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com> - 2011-07-16 19:14 +0000
                Re: error message I don understand The Natural Philosopher <tnp@invalid.invalid> - 2011-07-16 22:18 +0100
    Re: error message I don understand The Natural Philosopher <tnp@invalid.invalid> - 2011-07-15 17:49 +0100
      Re: error message I don understand "liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com> - 2011-07-15 17:25 +0000
    Re: error message I don understand Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-07-16 19:28 +0000
      Re: error message I don understand "liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com> - 2011-07-17 08:21 +0000
        Re: error message I don understand Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-07-17 11:10 +0200
          Re: error message I don understand The Natural Philosopher <tnp@invalid.invalid> - 2011-07-17 10:20 +0100
            Re: error message I don understand Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-17 09:01 -0400
          Re: error message I don understand Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-17 09:00 -0400
            Re: error message I don understand Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-07-17 14:53 +0000
              Re: error message I don understand dougatmilmacdotcom@example.com (Doug Miller) - 2011-07-17 16:26 +0000
              Re: error message I don understand "liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com> - 2011-07-18 16:11 +0000
          Re: error message I don understand Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-07-17 14:52 +0000
            Re: error message I don understand Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-07-18 17:19 +0200
              Re: error message I don understand The Natural Philosopher <tnp@invalid.invalid> - 2011-07-18 17:01 +0100
          Re: error message I don understand "liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com> - 2011-07-18 16:07 +0000
            Re: error message I don understand Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-07-18 18:27 +0200
              Re: error message I don understand "liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com> - 2011-07-18 20:12 +0000
    Re: error message I don understand August Karlstrom <fusionfile@gmail.com> - 2011-07-17 14:55 +0200
      Re: error message I don understand Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-17 09:03 -0400
        Re: error message I don understand August Karlstrom <fusionfile@gmail.com> - 2011-07-17 16:50 +0200
          Re: error message I don understand Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-17 12:26 -0400
          Re: error message I don understand "Peter H. Coffin" <hellsop@ninehells.com> - 2011-07-17 11:31 -0500
            Nasty language semantics (Was: error message I don understand) August Karlstrom <fusionfile@gmail.com> - 2011-07-17 19:47 +0200
              Re: Nasty language semantics (Was: error message I don understand) Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-17 14:12 -0400
              Re: Nasty language semantics (Was: error message I don understand) Robert Heller <heller@deepsoft.com> - 2011-07-17 13:26 -0500
              Re: Nasty language semantics (Was: error message I don understand) Tim Streater <timstreater@greenbee.net> - 2011-07-17 20:23 +0100
                Re: Nasty language semantics (Was: error message I don understand) The Natural Philosopher <tnp@invalid.invalid> - 2011-07-17 20:50 +0100
                  Re: Nasty language semantics (Was: error message I don understand) Robert Heller <heller@deepsoft.com> - 2011-07-17 15:17 -0500
                    Re: Nasty language semantics (Was: error message I don understand) The Natural Philosopher <tnp@invalid.invalid> - 2011-07-17 21:21 +0100
                    Re: Nasty language semantics Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-07-18 18:17 +0200
                  Re: Nasty language semantics (Was: error message I don understand) Tim Streater <timstreater@greenbee.net> - 2011-07-17 23:06 +0100
                    Re: Nasty language semantics (Was: error message I don understand) August Karlstrom <fusionfile@gmail.com> - 2011-07-18 00:48 +0200
                      Re: Nasty language semantics (Was: error message I don understand) Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-17 19:23 -0400
                        Re: Nasty language semantics (Was: error message I don understand) August Karlstrom <fusionfile@gmail.com> - 2011-07-18 01:51 +0200
                          Re: Nasty language semantics (Was: error message I don understand) Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-17 21:18 -0400
                      Re: Nasty language semantics (Was: error message I don understand) Tim Streater <timstreater@greenbee.net> - 2011-07-18 09:22 +0100
                        Re: Nasty language semantics (Was: error message I don understand) "Peter H. Coffin" <hellsop@ninehells.com> - 2011-07-18 10:57 -0500
          Re: error message I don understand Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-07-18 17:55 +0200
            Nasty language semantics (Was: error message I don understand) August Karlstrom <fusionfile@gmail.com> - 2011-07-18 20:31 +0200
              Re: Nasty language semantics Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-07-18 21:29 +0200

Page 1 of 3  [1] 2 3  Next page →


#2565 — error message I don understand

From"liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com>
Date2011-07-15 14:38 +0000
Subjecterror message I don understand
Message-ID<4e2050e3$0$48996$dbd4f001@news.wanadoo.nl>
Hello group,

I'm doing some php programming on my own webserver.

I get the error message: PHP Fatal error:  Can't use function return
value in write context in line 69

This is line 69:  if (mysqli_num_rows($sDBResultaat) = 1 )

Either I don see what I'm doing wrong or I interpret the message wrong.
Either way I don't understand, can somebody point me the right way?

Thanks in advance, schimanski.

[toc] | [next] | [standalone]


#2566

FromBilly Mays <81282ed9a88799d21e77957df2d84bd6514d9af6@myhashismyemail.com>
Date2011-07-15 10:44 -0400
Message-ID<ivpjnv$ela$2@speranza.aioe.org>
In reply to#2565
On 07/15/2011 10:38 AM, liebling.kreuzberg@gmail.com wrote:
> This is line 69:  if (mysqli_num_rows($sDBResultaat) = 1 )

You need to use the comparison operator (==) rather than the assignment 
operator (=).

--
Bill

[toc] | [prev] | [next] | [standalone]


#2569

From"liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com>
Date2011-07-15 17:26 +0000
Message-ID<4e20782d$0$251$dbd41001@news.wanadoo.nl>
In reply to#2566
Billy Mays wrote:

> On 07/15/2011 10:38 AM, liebling.kreuzberg@gmail.com wrote:
>> This is line 69:  if (mysqli_num_rows($sDBResultaat) = 1 )
>
> You need to use the comparison operator (==) rather than the assignment 
> operator (=).
>
Thanks for the polite answer. I did miss that.

Best regards, Schimanski.

[toc] | [prev] | [next] | [standalone]


#2570

FromThe Natural Philosopher <tnp@invalid.invalid>
Date2011-07-15 18:45 +0100
Message-ID<ivpuc0$101$1@news.albasani.net>
In reply to#2569
liebling.kreuzberg@gmail.com wrote:
> Billy Mays wrote:
> 
>> On 07/15/2011 10:38 AM, liebling.kreuzberg@gmail.com wrote:
>>> This is line 69:  if (mysqli_num_rows($sDBResultaat) = 1 )
>> You need to use the comparison operator (==) rather than the assignment 
>> operator (=).
>>
> Thanks for the polite answer. I did miss that.
> 
> Best regards, Schimanski.

Odd, since I said exactly the same thing, with added humour.

[toc] | [prev] | [next] | [standalone]


#2571

From"liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com>
Date2011-07-15 18:36 +0000
Message-ID<4e2088ad$0$56608$dbd45001@news.wanadoo.nl>
In reply to#2570
The Natural Philosopher wrote:

> liebling.kreuzberg@gmail.com wrote:
>> Billy Mays wrote:
>> 
>>> On 07/15/2011 10:38 AM, liebling.kreuzberg@gmail.com wrote:
>>>> This is line 69:  if (mysqli_num_rows($sDBResultaat) = 1 )
>>> You need to use the comparison operator (==) rather than the assignment 
>>> operator (=).
>>>
>> Thanks for the polite answer. I did miss that.
>> 
>> Best regards, Schimanski.
>
> Odd, since I said exactly the same thing, with added humour.

Hmmm, strange form of humour. Not my cup of ........
Maybe due to the fact that Englis (nor American) is not my mothertongue.

BR, Schimanski

[toc] | [prev] | [next] | [standalone]


#2572

FromVanguardLH <V@nguard.LH>
Date2011-07-15 14:25 -0500
Message-ID<ivq473$fh6$1@news.albasani.net>
In reply to#2571
liebling.kreuzberg wrote:

> Natural Philosopher wrote:
> 
>> Odd, since I said exactly the same thing, with added humour.
> 
> Hmmm, strange form of humour. Not my cup of ........
> Maybe due to the fact that Englis (nor American) is not my mothertongue.

Natural posted 2 hours *after* Billy and, of course, we're supposed to
assume that he didn't see Billy's reply to spur him onto the same
solution but differently composed.  

In some programming languages, the "=" is not an assignment operator
when its context is within the conditional clause.  In others, it is an
assignment operator (followed by a Boolean test for true or false) and
is sometimes used as a cheat but usually for the right-side operand.  If
you had reversed the left- and right-side operands you wouldn't get an
error in all languages and instead might get an assignment that you
didn't expect along with an action by the 'if' that was unplanned.

Sometimes another pair of eyes will see your mistake.  Too often your
eyes see what your mind expects to see.  Bouncing between multiple
programming languages doesn't help, either.  Don't let Natural fool you:
this is a mistake common to ALL programmers and shows up often enough
that all of them recognize the mistake because it wasn't so long ago
since they made that same mistake.  

[toc] | [prev] | [next] | [standalone]


#2574

FromThe Natural Philosopher <tnp@invalid.invalid>
Date2011-07-15 21:36 +0100
Message-ID<ivq8ch$o0p$5@news.albasani.net>
In reply to#2572
VanguardLH wrote:
> liebling.kreuzberg wrote:
> 
>> Natural Philosopher wrote:
>>
>>> Odd, since I said exactly the same thing, with added humour.
>> Hmmm, strange form of humour. Not my cup of ........
>> Maybe due to the fact that Englis (nor American) is not my mothertongue.
> 
> Natural posted 2 hours *after* Billy and, of course, we're supposed to
> assume that he didn't see Billy's reply to spur him onto the same
> solution but differently composed.  
> 
> In some programming languages, the "=" is not an assignment operator
> when its context is within the conditional clause.  In others, it is an
> assignment operator (followed by a Boolean test for true or false) and
> is sometimes used as a cheat but usually for the right-side operand.  If
> you had reversed the left- and right-side operands you wouldn't get an
> error in all languages and instead might get an assignment that you
> didn't expect along with an action by the 'if' that was unplanned.
> 
> Sometimes another pair of eyes will see your mistake.  Too often your
> eyes see what your mind expects to see.  Bouncing between multiple
> programming languages doesn't help, either.  Don't let Natural fool you:
> this is a mistake common to ALL programmers and shows up often enough
> that all of them recognize the mistake because it wasn't so long ago
> since they made that same mistake.  

Ah but when I first made it it was because I didn't know better

Today its just a typo.;-)

[toc] | [prev] | [next] | [standalone]


#2575

From"liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com>
Date2011-07-16 09:17 +0000
Message-ID<4e215729$0$3570$dbd45001@news.wanadoo.nl>
In reply to#2574
The Natural Philosopher wrote:

> VanguardLH wrote:
>> liebling.kreuzberg wrote:
>> 
>>> Natural Philosopher wrote:
>>>
>>>> Odd, since I said exactly the same thing, with added humour.
>>> Hmmm, strange form of humour. Not my cup of ........
>>> Maybe due to the fact that Englis (nor American) is not my mothertongue.
>> 
>> Natural posted 2 hours *after* Billy and, of course, we're supposed to
>> assume that he didn't see Billy's reply to spur him onto the same
>> solution but differently composed.  
>> 
>> In some programming languages, the "=" is not an assignment operator
>> when its context is within the conditional clause.  In others, it is an
>> assignment operator (followed by a Boolean test for true or false) and
>> is sometimes used as a cheat but usually for the right-side operand.  If
>> you had reversed the left- and right-side operands you wouldn't get an
>> error in all languages and instead might get an assignment that you
>> didn't expect along with an action by the 'if' that was unplanned.
>> 
>> Sometimes another pair of eyes will see your mistake.  Too often your
>> eyes see what your mind expects to see.  Bouncing between multiple
>> programming languages doesn't help, either.  Don't let Natural fool you:
>> this is a mistake common to ALL programmers and shows up often enough
>> that all of them recognize the mistake because it wasn't so long ago
>> since they made that same mistake.  
>
> Ah but when I first made it it was because I didn't know better
>
> Today its just a typo.;-)

Never mind, I learned something I didn't know and that is a win.

BR, Schimanski

[toc] | [prev] | [next] | [standalone]


#2576

FromThe Natural Philosopher <tnp@invalid.invalid>
Date2011-07-16 13:52 +0100
Message-ID<ivs1hr$ku9$1@news.albasani.net>
In reply to#2575
liebling.kreuzberg@gmail.com wrote:
> The Natural Philosopher wrote:
> 
>> VanguardLH wrote:
>>> liebling.kreuzberg wrote:
>>>
>>>> Natural Philosopher wrote:
>>>>
>>>>> Odd, since I said exactly the same thing, with added humour.
>>>> Hmmm, strange form of humour. Not my cup of ........
>>>> Maybe due to the fact that Englis (nor American) is not my mothertongue.
>>> Natural posted 2 hours *after* Billy and, of course, we're supposed to
>>> assume that he didn't see Billy's reply to spur him onto the same
>>> solution but differently composed.  
>>>
>>> In some programming languages, the "=" is not an assignment operator
>>> when its context is within the conditional clause.  In others, it is an
>>> assignment operator (followed by a Boolean test for true or false) and
>>> is sometimes used as a cheat but usually for the right-side operand.  If
>>> you had reversed the left- and right-side operands you wouldn't get an
>>> error in all languages and instead might get an assignment that you
>>> didn't expect along with an action by the 'if' that was unplanned.
>>>
>>> Sometimes another pair of eyes will see your mistake.  Too often your
>>> eyes see what your mind expects to see.  Bouncing between multiple
>>> programming languages doesn't help, either.  Don't let Natural fool you:
>>> this is a mistake common to ALL programmers and shows up often enough
>>> that all of them recognize the mistake because it wasn't so long ago
>>> since they made that same mistake.  
>> Ah but when I first made it it was because I didn't know better
>>
>> Today its just a typo.;-)
> 
> Never mind, I learned something I didn't know and that is a win.
> 
> BR, Schimanski
> 


Well you got your answer, I had some fun, reminiscing about  the first 
uncertain steps we all take in programming,  and no harm was done, so a 
win win hopefully.

I remember many years ago I went back to sort out some issues in some C 
code..someone else had taken ober

" I see you don't like using the 'switch..case' statement, its all 
nested 'if then else' here'

"No, I like it. Then I wasn't sure of the syntax, and I was under heavy 
pressure to get this working, so I used what I was familiar with".

(I didn't want to tell her it was in fact the first commercial C code I 
had ever written).

[toc] | [prev] | [next] | [standalone]


#2698

FromHeinrich Käsner <heinkasner@gmail.com>
Date2011-08-02 07:02 -0700
Message-ID<1eebbfaa-0b2b-486a-bcf4-9b034655cbdd@glegroupsg2000goo.googlegroups.com>
In reply to#2574
@The Natural Philosopher - Maybe we were all just tired that day

[toc] | [prev] | [next] | [standalone]


#2573

FromThe Natural Philosopher <tnp@invalid.invalid>
Date2011-07-15 21:35 +0100
Message-ID<ivq8am$o0p$4@news.albasani.net>
In reply to#2571
liebling.kreuzberg@gmail.com wrote:
> The Natural Philosopher wrote:
> 
>> liebling.kreuzberg@gmail.com wrote:
>>> Billy Mays wrote:
>>>
>>>> On 07/15/2011 10:38 AM, liebling.kreuzberg@gmail.com wrote:
>>>>> This is line 69:  if (mysqli_num_rows($sDBResultaat) = 1 )
>>>> You need to use the comparison operator (==) rather than the assignment 
>>>> operator (=).
>>>>
>>> Thanks for the polite answer. I did miss that.
>>>
>>> Best regards, Schimanski.
>> Odd, since I said exactly the same thing, with added humour.
> 
> Hmmm, strange form of humour. Not my cup of ........
> Maybe due to the fact that Englis (nor American) is not my mothertongue.
> 

That OK, the main thing is to learn PHP...


> BR, Schimanski

[toc] | [prev] | [next] | [standalone]


#2577

FromJerry Stuckle <jstucklex@attglobal.net>
Date2011-07-16 09:30 -0400
Message-ID<ivs3pp$ug1$1@dont-email.me>
In reply to#2571
On 7/15/2011 2:36 PM, liebling.kreuzberg@gmail.com wrote:
> The Natural Philosopher wrote:
>
>> liebling.kreuzberg@gmail.com wrote:
>>> Billy Mays wrote:
>>>
>>>> On 07/15/2011 10:38 AM, liebling.kreuzberg@gmail.com wrote:
>>>>> This is line 69:  if (mysqli_num_rows($sDBResultaat) = 1 )
>>>> You need to use the comparison operator (==) rather than the assignment
>>>> operator (=).
>>>>
>>> Thanks for the polite answer. I did miss that.
>>>
>>> Best regards, Schimanski.
>>
>> Odd, since I said exactly the same thing, with added humour.
>
> Hmmm, strange form of humour. Not my cup of ........
> Maybe due to the fact that Englis (nor American) is not my mothertongue.
>
> BR, Schimanski

You have to understand TNP.  He's not a programmer (nor even the 
engineer he portends to be).  He really doesn't understand a lot.

What he does is wait for someone else to answer, reword it into an 
insult (if he even understands the original response) then, when called 
on it, claim it's "humor".

It's unfortunate that we have to put up with his trolling.  But then he 
wouldn't want people to find out who he really is - which is why he 
tries to hide behind a 'nym.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#2579

From"liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com>
Date2011-07-16 19:14 +0000
Message-ID<4e21e30c$0$75035$dbd4d001@news.wanadoo.nl>
In reply to#2577
Jerry Stuckle wrote:

> On 7/15/2011 2:36 PM, liebling.kreuzberg@gmail.com wrote:
>> The Natural Philosopher wrote:
>>
>>> liebling.kreuzberg@gmail.com wrote:
>>>> Billy Mays wrote:
>>>>
>>>>> On 07/15/2011 10:38 AM, liebling.kreuzberg@gmail.com wrote:
>>>>>> This is line 69:  if (mysqli_num_rows($sDBResultaat) = 1 )
>>>>> You need to use the comparison operator (==) rather than the assignment
>>>>> operator (=).
>>>>>
>>>> Thanks for the polite answer. I did miss that.
>>>>
>>>> Best regards, Schimanski.
>>>
>>> Odd, since I said exactly the same thing, with added humour.
>>
>> Hmmm, strange form of humour. Not my cup of ........
>> Maybe due to the fact that Englis (nor American) is not my mothertongue.
>>
>> BR, Schimanski
>
> You have to understand TNP.  He's not a programmer (nor even the 
> engineer he portends to be).  He really doesn't understand a lot.
>
> What he does is wait for someone else to answer, reword it into an 
> insult (if he even understands the original response) then, when called 
> on it, claim it's "humor".
>
> It's unfortunate that we have to put up with his trolling.  But then he 
> wouldn't want people to find out who he really is - which is why he 
> tries to hide behind a 'nym.
>
Thanks for explaining. I'm relatively new to this newsgroup, so I have
to learn who is a troll and who is really doing a good job in helping.

Over time I'll learn to distinguish trolls from helpers.....

BR, Schimanski.

[toc] | [prev] | [next] | [standalone]


#2581

FromThe Natural Philosopher <tnp@invalid.invalid>
Date2011-07-16 22:18 +0100
Message-ID<ivsv7u$n49$1@news.albasani.net>
In reply to#2579
liebling.kreuzberg@gmail.com wrote:
> Jerry Stuckle wrote:
> 
>> On 7/15/2011 2:36 PM, liebling.kreuzberg@gmail.com wrote:
>>> The Natural Philosopher wrote:
>>>
>>>> liebling.kreuzberg@gmail.com wrote:
>>>>> Billy Mays wrote:
>>>>>
>>>>>> On 07/15/2011 10:38 AM, liebling.kreuzberg@gmail.com wrote:
>>>>>>> This is line 69:  if (mysqli_num_rows($sDBResultaat) = 1 )
>>>>>> You need to use the comparison operator (==) rather than the assignment
>>>>>> operator (=).
>>>>>>
>>>>> Thanks for the polite answer. I did miss that.
>>>>>
>>>>> Best regards, Schimanski.
>>>> Odd, since I said exactly the same thing, with added humour.
>>> Hmmm, strange form of humour. Not my cup of ........
>>> Maybe due to the fact that Englis (nor American) is not my mothertongue.
>>>
>>> BR, Schimanski
>> You have to understand TNP.  He's not a programmer (nor even the 
>> engineer he portends to be).  He really doesn't understand a lot.
>>
>> What he does is wait for someone else to answer, reword it into an 
>> insult (if he even understands the original response) then, when called 
>> on it, claim it's "humor".
>>
>> It's unfortunate that we have to put up with his trolling.  But then he 
>> wouldn't want people to find out who he really is - which is why he 
>> tries to hide behind a 'nym.
>>
> Thanks for explaining. I'm relatively new to this newsgroup, so I have
> to learn who is a troll and who is really doing a good job in helping.
> 
> Over time I'll learn to distinguish trolls from helpers.....
> 

well you just met ine there. Trolls

> BR, Schimanski.

[toc] | [prev] | [next] | [standalone]


#2567

FromThe Natural Philosopher <tnp@invalid.invalid>
Date2011-07-15 17:49 +0100
Message-ID<ivpr2c$of0$1@news.albasani.net>
In reply to#2565
liebling.kreuzberg@gmail.com wrote:
> Hello group,
> 
> I'm doing some php programming on my own webserver.
> 
> I get the error message: PHP Fatal error:  Can't use function return
> value in write context in line 69
> 
> This is line 69:  if (mysqli_num_rows($sDBResultaat) = 1 )
> 
> Either I don see what I'm doing wrong or I interpret the message wrong.
> Either way I don't understand, can somebody point me the right way?
> 
> Thanks in advance, schimanski.

That's a nice way of saying  that you are a complete numpty and haven't 
yet learnt to distinguish between assignment:-)

SET a=b

and comparison:

IF a==b

You can thank your lucky stars that your interpreter is merely obscure 
in its error messages  - heck if you had posted this to comp.lang.php or 
something, you would have got an impenetrable answer from Stuckle AND 
abuse, too;-)

However, I am pretty sure that I did this a couple of times when I 
started programming, so I am only going to have a chuckle at your 
glorious innocence, that reminds me of long long ago when programming a 
computer was a new and very strange thing.

[toc] | [prev] | [next] | [standalone]


#2568

From"liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com>
Date2011-07-15 17:25 +0000
Message-ID<4e20780e$0$246$dbd41001@news.wanadoo.nl>
In reply to#2567
The Natural Philosopher wrote:

> liebling.kreuzberg@gmail.com wrote:
>> Hello group,
>> 
>> I'm doing some php programming on my own webserver.
>> 
>> I get the error message: PHP Fatal error:  Can't use function return
>> value in write context in line 69
>> 
>> This is line 69:  if (mysqli_num_rows($sDBResultaat) = 1 )
>> 
>> Either I don see what I'm doing wrong or I interpret the message wrong.
>> Either way I don't understand, can somebody point me the right way?
>> 
>> Thanks in advance, schimanski.
>
> That's a nice way of saying  that you are a complete numpty and haven't 
> yet learnt to distinguish between assignment:-)
>
> SET a=b
>
> and comparison:
>
> IF a==b
>
> You can thank your lucky stars that your interpreter is merely obscure 
> in its error messages  - heck if you had posted this to comp.lang.php or 
> something, you would have got an impenetrable answer from Stuckle AND 
> abuse, too;-)
>
> However, I am pretty sure that I did this a couple of times when I 
> started programming, so I am only going to have a chuckle at your 
> glorious innocence, that reminds me of long long ago when programming a 
> computer was a new and very strange thing.

Since I learned to program in a fair amount of computer languages, the
difference between = and == doesn't get the attention it needed to have.

Nevertheless I am delighted with your typecasting of me as someone
who is just asking. I hope you, as The Natural Philosopher are that much
enlighted that you will forgive me my typo......

Next time when I'm busy to ask something in your language, try to answer
it in mine. That makes you a philosopher.

Thanks, Schimanski.

[toc] | [prev] | [next] | [standalone]


#2580

FromDenis McMahon <denis.m.f.mcmahon@gmail.com>
Date2011-07-16 19:28 +0000
Message-ID<4e21e658$0$19265$a8266bb1@newsreader.readnews.com>
In reply to#2565
On Fri, 15 Jul 2011 14:38:28 +0000, liebling.kreuzberg@gmail.com wrote:


> I'm doing some php programming on my own webserver.
> 
> I get the error message: PHP Fatal error:  Can't use function return
> value in write context in line 69
> 
> This is line 69:  if (mysqli_num_rows($sDBResultaat) = 1 )
> 
> Either I don see what I'm doing wrong or I interpret the message wrong.
> Either way I don't understand, can somebody point me the right way?

Consider:

<?php

function x()
  {
  return 5;
  }

x() = 1;

?>

although x() gives the value 5, it is not a variable that can be set, and 
so you can not assign (or write) a value (such as 1) to it.

The php error message is saying that you can't assign (or write) a value 
to a function call, or in other words, the return value of a function 
call is read_only data.

Rgds

Denis McMahon

[toc] | [prev] | [next] | [standalone]


#2582

From"liebling.kreuzberg@gmail.com" <liebling.kreuzberg@gmail.com>
Date2011-07-17 08:21 +0000
Message-ID<4e229b87$0$39844$dbd4d001@news.wanadoo.nl>
In reply to#2580
Denis McMahon wrote:

> On Fri, 15 Jul 2011 14:38:28 +0000, liebling.kreuzberg@gmail.com wrote:
>
>
>> I'm doing some php programming on my own webserver.
>> 
>> I get the error message: PHP Fatal error:  Can't use function return
>> value in write context in line 69
>> 
>> This is line 69:  if (mysqli_num_rows($sDBResultaat) = 1 )
>> 
>> Either I don see what I'm doing wrong or I interpret the message wrong.
>> Either way I don't understand, can somebody point me the right way?
>
> Consider:
>
> <?php
>
> function x()
>   {
>   return 5;
>   }
>
> x() = 1;
>
> ?>
>
> although x() gives the value 5, it is not a variable that can be set, and 
> so you can not assign (or write) a value (such as 1) to it.
>
> The php error message is saying that you can't assign (or write) a value 
> to a function call, or in other words, the return value of a function 
> call is read_only data.
>
> Rgds
>
> Denis McMahon

Thanks Dennis.

Good addition to the explanation of Billy.

BR, Schimanski

[toc] | [prev] | [next] | [standalone]


#2583

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2011-07-17 11:10 +0200
Message-ID<1661536.sHWYdyDnFx@PointedEars.de>
In reply to#2582
liebling.kreuzberg@gmail.com wrote:

> Denis McMahon wrote:
>> Consider:
>>
>> <?php
>>
>> function x()
>>   {
>>   return 5;
>>   }
>>
>> x() = 1;
>>
>> ?>
>>
>> although x() gives the value 5, it is not a variable that can be set, and
>> so you can not assign (or write) a value (such as 1) to it.
>>
>> The php error message is saying that you can't assign (or write) a value
>> to a function call, or in other words, the return value of a function
                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> call is read_only data.
   ^^^^^^^^^^^^^^^^^^^^^^^
> Thanks Dennis.
> 
> Good addition to the explanation of Billy.

In the end an oversimplified, wrong explanation.  It is a syntactical 
requirement, not a functional one:

  function x()
  {
    return array(23);
  }

  $a = x();

  $a[0] = 42;

  /* 
   * Array
   * (
   *   [0] => 42  
   * )
   */
  print_r($a);

You would be well-advised to post under your real name, as it is customary 
in Usenet.


PointedEars
-- 
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
 -- Richard Cornford, cljs, <cife6q$253$1$8300dec7@news.demon.co.uk> (2004)

[toc] | [prev] | [next] | [standalone]


#2584

FromThe Natural Philosopher <tnp@invalid.invalid>
Date2011-07-17 10:20 +0100
Message-ID<ivu9gr$okf$1@news.albasani.net>
In reply to#2583
Thomas 'PointedEars' Lahn wrote:
> liebling.kreuzberg@gmail.com wrote:
> 
>> Denis McMahon wrote:
>>> Consider:
>>>
>>> <?php
>>>
>>> function x()
>>>   {
>>>   return 5;
>>>   }
>>>
>>> x() = 1;
>>>
>>> ?>
>>>
>>> although x() gives the value 5, it is not a variable that can be set, and
>>> so you can not assign (or write) a value (such as 1) to it.
>>>
>>> The php error message is saying that you can't assign (or write) a value
>>> to a function call, or in other words, the return value of a function
>                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>> call is read_only data.
>    ^^^^^^^^^^^^^^^^^^^^^^^
>> Thanks Dennis.
>>
>> Good addition to the explanation of Billy.
> 
> In the end an oversimplified, wrong explanation.  It is a syntactical 
> requirement, not a functional one:
> 
>   function x()
>   {
>     return array(23);
>   }
> 
>   $a = x();
> 
>   $a[0] = 42;
> 
>   /* 
>    * Array
>    * (
>    *   [0] => 42  
>    * )
>    */
>   print_r($a);
> 

fair point, if pedantic.


> You would be well-advised to post under your real name, as it is customary 
> in Usenet.
> 

And have the Stuckle stalk you in real life?

I think not.

> 
> PointedEars

[toc] | [prev] | [next] | [standalone]


Page 1 of 3  [1] 2 3  Next page →

Back to top | Article view | comp.lang.php


csiph-web