RE: [PHP-DB] Question: For no results
| From: | Ford, Mike | Date: | Fri, 03 Dec 2004 15:40:58 +0000 |
| Subject: | RE: [PHP-DB] Question: For no results | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-37557@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:26, Stuart Felenstein wrote:
> --- "Ford, Mike" <M.Ford@leedsmet.ac.uk> 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@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211