Tuesday, July 5, 2011

[phpXperts] Query Error

 

Hi All,

Tried everything but not able to find what is the error. Here is my query:

$record_count = mysql_num_rows(mysql_query("SELECT id FROM search") or die(mysql_error()) );

Although my code is working perfectly. However I am getting this error:

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\muilti\we.php on line 44


I can stop the error reporting but I want to know what exactly is the issue.


--
Best,

Guru™

__._,_.___
Recent Activity:
Visit phpXperts website at www.phpxperts.net
.

__,_._,___

No comments: