Finding the number of rows returned in executed query of mysql using php
by rajesh[ Edit ] 2011-06-28 19:06:11
To fin the number of rows in the result of the executed query in mysql using php we can use the inbuild mysql_num_rows function..
Example:
$result = mysql_query("SELECT * FROM table1", $link);
$num_rows = mysql_num_rows($result);