How can I make iy so that if you query the db, it returns all the info in a formated table (know that part btw) but if there is nothing it returns a message like There are no results instead of just showing an empty table?
Use mysql_num_rows
$sql = mysql_query("Blah blah blah"); $rows = mysql_num_rows($sql); if($rows == 0) { // error out } else { // display your table }