Re: [PHP-WIN] Misunderstanding mssql_query in the manual

2005-09-12 Thread Alf Stockton
Darvin Andrioli wrote: -Messaggio originale- Da: Alf Stockton [mailto:[EMAIL PROTECTED] 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(($r

Re: [PHP-WIN] Misunderstanding mssql_query in the manual

2005-09-12 Thread M. Sokolewicz
Darvin Andrioli wrote: -Messaggio originale- Da: Alf Stockton [mailto:[EMAIL PROTECTED] 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 === TRU

Re: [PHP-WIN] Misunderstanding mssql_query in the manual

2005-09-12 Thread Darvin Andrioli
> -Messaggio originale- > Da: Alf Stockton [mailto:[EMAIL PROTECTED] > 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 -- PHP

[PHP-WIN] Misunderstanding mssql_query in the manual

2005-09-12 Thread Alf Stockton
I am apparently misunderstanding the mssql_query entry in the manual. The manual reads:- Returns: A MS SQL result resource on success, *TRUE* if no rows were returned, or *FALSE* on error. From that I believe that if I test result for TRUE I should report a no data available and if FALSE disp