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

Popular posts from this blog

MySql variables and php -

c# - How can I find out if there are windows above a control? -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -