Re: supernoob strikes again

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

 



Dan Bowkley wrote:
got it...rather than return false, mysql_result throws an error if the query
returns nothing.  What a pain.

NOT True.


If the query is syntactically valid and nothing matches, mysql returns zero rows which is not an error, at least on the part of the dbms. Use mysql_num_rows() to test for this condition.

Doug

Finished product at
http://www.dibcomputers.com/new-dibcomputers/index.php.txt if anyone wants
to steal it...

D

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux