note 99711 deleted from function.return by danbrown
| From: | danbrown@php.net | Date: | Wed, 01 Sep 2010 00:36:19 +0000 |
| Subject: | note 99711 deleted from function.return by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172224@lists.php.net to get a copy of this message | ||
Note Submitter: OsamaBinLogin
----
fyrye : don't do
return die("Query Failed");
The die() function (aka exit()) ends the process. poof. No return value. The return statement
will never execute. The caller will never continue executing. just do this instead:
die("Query Failed");