RE: [PHP] redirect if sql = nothing

From: Date: Tue, 20 Feb 2001 16:52:50 +0000
Subject: RE: [PHP] redirect if sql = nothing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40760@lists.php.net to get a copy of this message
$sql = "select * from table where bla bla bla"; if(!isset($sql)) { do this; } else { do this; } I think.... ? -Brian ************** > -----Original Message----- > From: Matt Davis [mailto:matt@roundyourway.co.uk] > Sent: Tuesday, February 20, 2001 11:33 AM > To: Php Mailing List > Subject: [PHP] redirect if sql = nothing > > > If my SQL returns no results then i want to redirect to a page saying no > results etc but if results are found then I want it to continue > on down the > script how would i do this. > > Matt. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#40760) next »