Code: Select all
if( ! $qry ) {
echo("<p>Error:".mysql_error()."</p>");
}Moderator: General Moderators
Code: Select all
if( ! $qry ) {
echo("<p>Error:".mysql_error()."</p>");
}Code: Select all
$result = mysql_query("Your query here");
if( mysql_num_rows($result) == 0 )
echo "No results found.";
else
{
// Do stuff with the results
}