<?php
// Select tables
$query1 = mysql_query "SELECT Load_ID , origin_state , origin_city , dest_state , dest_city , contact , phone , email
FROM loads
WHERE status = 1
LEFT JOIN customer ON loads . Cust_ID = customer . Cust_ID
ORDER BY Load_ID" ;
the error is showing line17 ORDER BY Load_ID
$result = mysql_query($query1);
while ($name_row = mysql_fetch_array($result))
{
print ("$name_row[0] $name_row[1] $name_row[2]<br>\n");
}
// if there aren't any loads, then lets generate a user-friendly notice that there aren't any
if ($result <0){
print("<p style=\"font-weight: bold; color: red;\">There Are Currently No Loads In The Database</p>");
}
?>
Thanks for any help you may give the database connection is in a include file and is connecting