Here's the code:
$testsql = "select * from $dbtable where fname='$xfname' AND lname='$xlname' AND address='$xaddress' AND city='$xcity' AND state='$xstate' AND zip='$xzip' AND country='$xcountry' AND hphone='$xhphone' AND wphone='$xwphone' AND cell='$xcell' AND email='$xemail' AND notes='$xnotes' AND uname='$xuser' limit 1";
//echo "$testsql<br>";
$testresult = mysql_query($testsql, $con);
$testcount=0;
while ($row = mysql_fetch_array ($testresult) ) {
$testcount=1;
}
and here's the warning:
Warning: 0 is not a MySQL result index in /mysite.com/page.php3 on line 373
In instances where I'm given this warning, the variable $testresult should not and will not be changed to 1. What I want to do then is simply turn off error reporting for this particular line. I think that I have to use the @ symbol but I don't know hot to implement it. Can anyone help?
Thanks,
Mark