04-12-2012, 04:29 AM
|
#2 (permalink)
|
|
The Addict
Join Date: Aug 2008
Posts: 336
Thanks: 8
|
You should save your results of a query in a variable, because of this explanation in the return section of the mysql_query function:
Quote:
|
For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset, mysql_query() returns a resource on success, or FALSE on error.
|
So, if your mysql_query is not successful it returns a FALSE and mysql_num_rows doesn't take that as an argument.
I think that might be the problem.
|
|
|
|