At 10:18 PM +0100 4/9/07, <chris@xxxxxxxxxxxx> wrote:
If I search for something in mysql that returns an empty result I
cant get it to return
"No result found" always returns "Found" even though the recoed does
not exist...
$sql = "SELECT Client FROM booked WHERE Name = 'larry'";
$result = mysql_query($sql);
if ($result == "")
{
echo "No result found";
}
echo "Found";
Try NULL
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php