Finding the number of rows returned in executed query of mysql using php

by rajesh 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);

Tagged in:

858
like
0
dislike
0
mail
flag

You must LOGIN to add comments