Thanks Gerrit
For some reason it's still not working. Here is exactly what I have...
$sql = "select zone, date_last_visited, zone_desc, current_status, sector from assign where current_status = 'off' and sector = 'w_or' ORDER BY date_last_visited ASC";
$sql_result = mysql_query($sql)
or die(mysql_error());
if (!$sql_result) {
echo "Query Failed.";
}
else {
echo "ok";
}
It just shows "ok" whether results are returned or not