RE: [PHP-DB] Question: For no results
| From: | Stuart Felenstein | Date: | Fri, 03 Dec 2004 15:05:57 +0000 |
| Subject: | RE: [PHP-DB] Question: For no results | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-37550@lists.php.net to get a copy of this message | ||
> The closing ?> of a PHP segment also implies an
> end-of-statement semicolon
> -- so the above is equivalent to:
>
> if ($row_rsCS == false) ;
> ?>
>
> Which, of course, means that the scope of the if
> doesn't extend to anything
> beyond this point.
>
> You need to mark the block controlled by the if,
> using either {-} or
> :-endif, according to your taste.
>
The reason the close is there is because the next line
of code is the print_r , and I put some html in there.
Stuart