I have the following code:
PHP Code:
$result=mysql_query("SELECT * FROM dealercart WHERE dealerid='$dealerid'");
if (!
$result){
echo(
"Sorry, no orders at this time for $dealerid.");
}

while (( 
$row mysql_fetch_array($result))) {
etc.... 
I need to have " sorry, no orders..." if the $dealerid isn't in the dealercart. It won't echo "sorry, no orders..." why??