Question from a real newbie: I have a number of rows stored in a MySQL database table. Take a look at this short piece of code:
if ($Query) {
print ("<p>No matching results.</p>");
} else {
while ($Row = mysql_fetch_array($Result)) {
print ("$Row[date], $Row[time]. $Row[eventname]. \n"); }
}
mysql_close($Link);
How can I modify the first line of this code so that if the $Query produces no matching results (not zero, but no matching results)? So I want the $Query to read like this:
If $Query IS NULL, Print "no matching results," else print the matching rows from the table.
Does that make sense? THANK YOU for your help.
--Bob