RE: Question: For no results

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:26, Stuart Felenstein wrote:

> --- "Ford, Mike" <M.Ford@xxxxxxxxxxxxxx> wrote:
> 
> > Well, your taste seems to be to use { }, so :-endif is irrelevant.
> > 
> Alright it's Friday, I'm punchy but we're all in a
> good mood !
> 
> Yes, I like the closing curlies
> 
> So, then where do these lovely ladies go here ?
> 
> if ($row_rsCS == false) {
> <p align="center"><strong><?php print_r ("No Matches Found");?>
> </strong></p> exit;
> }

And, by the way, why on earth are you using a print_r an a straight literal
string?  Seems to me you could just put that text in as part of the HTML:

   if ($row_rsCS == false) {
   ?>
     <p align="center"><strong>No Matches Found</strong></p>
   <?php
     exit;
   }

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@xxxxxxxxxxxxxx
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux