Allright...
When pulling info from a database using an HTML/PHP script, and there aren't any matching rows, why does it spit out this error:
Warning: Supplied argument is not a valid MySQL result resource in /usr/local/etc/httpd/htdocs/attmed/employee/empreports/single.php on line 176
I've tested, and put info in the database, and the error dissipates.
Is there any way to get around this?
I was thinking about doing this:
if (mysql_numrows($variable) = 0){
echo "nothin here, dood<br>\n";
}
else{
echo"outputted data\n";
}
Is there an easier way to do this?
Thanks for any assistance...
-=Lazzerous=-