i have a problem with mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\header.php on line 81
the codes is
";
$q=mysql_query("SELECT * FROM ads ORDER BY rand() LIMIT 1",$c);
if(mysql_num_rows($q))
{
}
print "<table width=100%><tr><td width=20% valign='top'>
";
can u reype the corrections please