Re: Misunderstanding mssql_query in the manual

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Darvin Andrioli wrote:

-----Messaggio originale-----
Da: Alf Stockton [mailto:alf@xxxxxxxxxxxxxx]
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

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux