foreach ($admin_array as $line) { $sql = "Select * From Guestbook;"; $result = mysql_query($sql)or die('Could not connect: ' . mysql_error()); if ($result==