Warning
| From: | Website4S at aol dot com | Date: | Sat, 09 Dec 2000 18:07:26 +0000 |
| Subject: | Warning | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-29487@lists.php.net to get a copy of this message | ||
Hi,
Anyone know why I keep getting a
Warning: 0 is not a MySQL result index ----- on line 11
in this code??
<?
$host="localhost";
$user="";
$passwd="";
$dbase="";
$Selstmt = "SELECT zip, email FROM OK WHERE zip='$Zip'
email='$Email'";
$dbh=mysql_connect($host, $user, $passwd);
$query=mysql_db_query($dbase, $Selstmt);
$num_rows=mysql_num_rows($query);
mysql_close();
if ($num_rows == 0)
{
echo "Hi";
}
else
{
echo "Nihg";
}
?>