Re: Misunderstanding mssql_query in the manual

From: Date: Mon, 12 Sep 2005 22:41:13 +0000
Subject: Re: Misunderstanding mssql_query in the manual
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-26320@lists.php.net to get a copy of this message
Darvin Andrioli wrote:
-----Messaggio originale----- Da: Alf Stockton [mailto:alf@stockton.co.za] Inviato: lunedì 12 settembre 2005 17.45
[...]
So my code reads:- if(($rs = TRUE)) {
       ^    ^    ^
Is it your code or do you forget many "=" in the example? It should be if(($rs === TRUE)) Darvin
Just as a note to what went wrong: What happens here is that you evaluate the result of an assignment, which is always true. So it will always perform the if(), no matter what the value of $rs is. - tul

« previous php.windows (#26320) next »