Instead of doing
PHP Code:
if ($q <= 0)
{
print ("$XX");
}
You might want to try something like this
PHP Code:
if (mysql_num_rows($query < 1)
{
print("$XX");
}
What you are doing now is checking if the passed variable $q is <= 0, and you need to check for the results in the sql resource.
|