$query = \"SELECT * FROM `table`\"; $results = mysql_query($query, $connection);
If \'table\' has no rows. whats the easiest way to check for this.?
Alternatively you can simply check if the result of mysql_fetch_assoc is false.
$query = "SELECT * FROM `table`"; $results = mysql_query($query, $connection); $Row = mysql_fetch_assoc($results); if ($Row == false) { $Msg = 'Table is empty'; }