Home » Interview » Technology

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

Correct Answer: $result = mysql_query($sql, $db_link); $num_rows = mysql_num_rows($result); echo "$num_rows rows found";

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion