On Saturday 23 October 2004 13:05, Walter Wojcik wrote:
> I am trying to write a script that checks a table for a value in MySQL.  It
> opens the table and queries it fine but if my query returns nothing i have
> no way of testing to see if it returned anything.  I have tried testing for
> "false" and "" and ! $result in a if statement but i don't know what to do.
>  How do I check to see if i got anything or not without getting this: 
> "Notice: Trying to get property of non-object ". This is my most current
> version of the code:

mysql_num_rows()

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Boy, am I glad it's only 1971...
*/

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

Reply via email to