note 33227 added to function.exit
| From: | Lucid at clanorb dot com | Date: | Thu, 19 Jun 2003 17:22:56 +0000 |
| Subject: | note 33227 added to function.exit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50667@lists.php.net to get a copy of this message | ||
Alot of people have suggested adding the rest of your page onto the die statement. A more readable
way of doing it is simply :
$footer = <<< FOOTER
</tr></table>Copyright foos (c) 1345
FOOTER;
-- then --
die("<b>Error :</b>" .mysql_error(). $footer);
I find that to be easier to read and flows a little better. I happen to use that to define the
templates in my page so i use it all the time.
----
Manual Page -- http://www.php.net/manual/en/function.exit.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33227
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33227&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33227&report=yes