PHP MySQL Reference ... The mysql_num_rows() function returns the number of rows in a recordset.
www.w3schools.com