[thelist] something wrong with my SQL query [solved]

Tom Dell'Aringa pixelmech at yahoo.com
Wed Nov 20 12:09:19 CST 2002


--- Rich Gray <rich at f1central.net> wrote:
> Tom
>
> IIRC $result will still be true if the select returns no rows.
> It'll only be
> false if the query is malformed.
> You need to check (mysql_num_rows($result) > 0)

Thank you Rich, that was indeed perfect!

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com



More information about the thelist mailing list