1.

How Can We Find The Number Of Rows In A Result Set Using Php?

Answer»

Here is how can you find the NUMBER of rows in a RESULT set in PHP:

$result = mysql_query($any_valid_sql, $database_link);
$num_rows = mysql_num_rows($result);
ECHO "$num_rows rows found";

Here is how can you find the number of rows in a result set in PHP:

$result = mysql_query($any_valid_sql, $database_link);
$num_rows = mysql_num_rows($result);
echo "$num_rows rows found";



Discussion

No Comment Found