Stop a User warning message

2003-09-15 Thread Tom Sparks
I am doing a mysql_num_rows after a SELECT statement and am getting the following warning message: Warning: Supplied argument is not a valid MySQL result resource in {pathname to program} on line 40 Line 40 - $result = mysql_num_rows($res); The SELECT statement: $res = mysql_query(SELECT *

Re: Stop a User warning message

2003-09-15 Thread Tom Sparks
Paul, It is not an error for $category to be 'no' in all records. The warning is just telling me that it didn't find any 'yes' records. I need to read up and find out how to error check the SELECT statement, I guess... -tom