PHP mysqli_num_rows() function returns the number of rows in a result set. This command is only valid for statements like SELECT or SHOW that return an actual result set.
Syntax
Parameter | Description |
---|---|
result : | Required parameter. The result resource that is being evaluated. This result comes from a call to mysql_query(). |
Return Values : | Returns the number of rows in a result set on success or FALSE on failure. |