E
x
c
e
l
P
T
P

How can we find the number of rows in a result set using PHP?

March 4, 2014

$result = mysql_query($sql, $db_link); $num_rows = mysql_num_rows($result); echo “$num_rows rows found”;