note 23256 added to function.die
| From: | thib at hn dot is | Date: | Fri, 12 Jul 2002 22:51:30 +0000 |
| Subject: | note 23256 added to function.die | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33008@lists.php.net to get a copy of this message | ||
You may use die() in error msg like...
mysql_query($foo) || die(mysql_error());
this will halt the script and give you only the mysql error
--
http://www.php.net/manual/en/function.die.php
http://master.php.net/manage/user-notes.php?action=edit+23256
http://master.php.net/manage/user-notes.php?action=delete+23256
http://master.php.net/manage/user-notes.php?action=reject+23256