$result = mysql_query("SELECT * FROM table", $link); $num_rows = mysql_num_rows($result); echo "<b>$num_rows</b>\n";