$query = \"SELECT * FROM `table`\"; $results = mysql_query($query, $connection);
If \'table\' has no rows. whats the easiest way to check for this.?
If you loop through the results, you can have a counter and check that.
$x = 1; $query = mysql_query("SELECT * FROM table"); while($row = mysql_fetch_assoc($query)) { $x++; } if($x == 1) { //No rows }