Re: [PHP] redirect if sql = nothing

2001-02-20 Thread Joe Sheble (Wizaerd)
by checking the return value of mysql_num_rows() At 04:32 PM 2/20/01 +, Matt Davis wrote: 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

RE: [PHP] redirect if sql = nothing

2001-02-20 Thread Brian V Bonini
$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:[EMAIL PROTECTED]] Sent: Tuesday, February 20, 2001 11:33 AM To: Php Mailing List

RE: [PHP] redirect if sql = nothing

2001-02-20 Thread Matt Davis
- From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]] Sent: 20 February 2001 16:46 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Php Mailing List Subject: RE: [PHP] redirect if sql = nothing Actually this won't work since the actual query never runs try: $sql = "select * from table wh