Posted: Mon Nov 15, 2004 3:39 pm
mysql_num_rows always return #NULL!
I found the reason in the manual:
cya dige
I found the reason in the manual:
You should change MySQL_Use_Result () to MySQL_Store_Result ()The use of mysql_num_rows() depends on whether you use mysql_store_result() or mysql_use_result() to return the result set. If you use mysql_store_result(), mysql_num_rows() may be called immediately. If you use mysql_use_result(), mysql_num_rows() will not return the correct value until all the rows in the result set have been retrieved.
cya dige