mysql if empty
- From: chris@xxxxxxxxxxxx
- Date: Mon, 9 Apr 2007 22:18:04 +0100
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";
----- Original Message ----- From: "Martin Marques" <martin@xxxxxxxxxxxxxxx>
To: "Stut" <stuttle@xxxxxxxxx>
Cc: "Tijnema !" <tijnema@xxxxxxxxx>; "tedd" <tedd@xxxxxxxxxxxx>; "Peter Lauri" <lists@xxxxxxxxxxx>; "Ólafur Waage" <sinai@xxxxxxxxx>; <php-general@xxxxxxxxxxxxx>
Sent: Monday, April 09, 2007 9:45 PM
Subject: Re: [PHP] Session Authentication
Stut escribió:.As with most things these days it probably breaches the DMCA. But frankly speaking, if doing that works then the developers of the application, and by extension the company, deserve everything they get.
DMCA is a real piece of crap.
--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
---------------------------------------------------------
Martín Marqués | Programador, DBA
Centro de Telemática | Administrador
Universidad Nacional
del Litoral
---------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Follow-Ups:
- Re: [PHP] mysql if empty
- From: "Richard Lynch"
- Re: [PHP] mysql if empty
- From: Jim Lucas
- Re: [PHP] mysql if empty
- From: tedd
- Re: [PHP] mysql if empty
- From: "Satyam"
- Re: [PHP] mysql if empty
- From: Paul Novitski
- Re: [PHP] mysql if empty
- From: Lori Lay
- Re: [PHP] mysql if empty
- From: afan
- Re: [PHP] mysql if empty
- References:
- Re: [PHP] Session Authentication
- From: "Tijnema !"
- RE: [PHP] Session Authentication
- From: "Peter Lauri"
- Re: [PHP] Session Authentication
- From: "Tijnema !"
- Re: [PHP] Session Authentication
- From: "Tijnema !"
- Re: [PHP] Session Authentication
- From: Martin Marques
- Re: [PHP] Session Authentication
- From: Stut
- Re: [PHP] Session Authentication
- From: Martin Marques
- Re: [PHP] Session Authentication
- Prev by Date: Re: [PHP] MD5 & bot Question
- Next by Date: Re: [PHP] mysql if empty
- Previous by thread: Re: [PHP] Session Authentication
- Next by thread: Re: [PHP] mysql if empty
- Index(es):
Relevant Pages
|