Jump to content

mysql_num_rows problem


pouncer

Recommended Posts

$s1 = mysql_query("SELECT * FROM collection WHERE collection_name LIKE %old% OR collection_name LIKE %houses%");
echo mysql_num_rows($s1);

 

error:

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result

but when i change my query to:

$s1 = mysql_query("SELECT * FROM collection");

 

then it works fine. can someone please tell me whats wrong?

Link to comment
https://forums.phpfreaks.com/topic/46130-mysql_num_rows-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.