hi, any please give me a solution on this
i m getting an error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in..
i have checked all but no solution yet
the code is as fallows:
$connection = db_connect();
$query = sprintf("SELECT * FROM modules WHERE name = '%s'",
mysql_real_escape_string($module_name));
$result = mysql_query($query);
//Checking Whether the Result is Empty.
$number_of_news = mysql_num_rows($result);
if ($number_of_news == 0)
{
return false;
}
return true;
}