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

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

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