php - Mysql how many search results -
How can I verify how many results come back from mysql db?
A table with result from I Mysql DB:
$ qry_result = mysql_query ($ query) or die (mysql_error ()); While ($ line = mysql_fetch_array ($ qry_result))
How many search results I want to display on users' search criteria ...
thanks
$ num_of_results = mysql_num_rows ($ qry_result);
This works for SELECT or SHO if the query is deleted by INSERT, UPDATE, again or use.
Comments
Post a Comment