note 41552 added to function.die
| From: | chatwithbea at bluewin dot ch | Date: | Wed, 14 Apr 2004 13:55:19 +0000 |
| Subject: | note 41552 added to function.die | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68112@lists.php.net to get a copy of this message | ||
Exit and die are the exact same functions.
Sometimes it's just more fun to say die, rather than exit.
I am writing this because it's caused me annoyance before. (don't ask me how).
Oh and if you did not know, you can do this to get debuging info from an SQL command
<?
$my_sexy_query = mysql_query("SELECT * FROM table")
or die(Mysql_error());
?>
Yeah, good luck.
----
Manual Page -- http://www.php.net/manual/en/function.die.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41552
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41552&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41552&report=yes
Search -- http://master.php.net/manage/user-notes.php