RE: [PHP-DB] Question: For no results

From: Date: Fri, 03 Dec 2004 15:19:20 +0000
Subject: RE: [PHP-DB] Question: For no results
Groups: php.db 
Request: Send a blank email to php-db+get-37554@lists.php.net to get a copy of this message
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 03 December 2004 15:16, Stuart Felenstein wrote: > --- Stuart Felenstein <stuart4m@yahoo.com> wrote: > > > The reason the close is there is because the next > > line > > of code is the print_r , and I put some html in > > there. > > > So this works great: > > if ($row_rsCS == false) { > print_r ("No Matches Found"); > exit; > } > > But because I want to have some html formatting around > the print_r, I closed the tags. Yes, but you didn't include the { } to indicate the scope of the if -- so it terminated at the ?>. > I'm not sure how to use the endif. Well, your taste seems to be to use { }, so :-endif is irrelevant. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.db (#37554) next »