I'm working on a php form that queries mysql. When I use
Code: Select all
$result= mysql_query($sql);Code: Select all
if(!isset($result)){
echo "nothing found";
}
Code: Select all
echo $result;
Should I stick with using my $row count for the condition in "if" and "case" statements?
I thought the above "if(!isset($result))" is the right way.
Thanks