note 93960 deleted from function.die by danbrown
| From: | danbrown@php.net | Date: | Thu, 08 Oct 2009 15:26:41 +0000 |
| Subject: | note 93960 deleted from function.die by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161521@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
"watch dot do dot sun at gmail dot com" wrote an example how to catch mysql_connect
errors, but there's a shorter version:
<?php
$conn = mysql_connect('localhost','user',12345678) or die('Error while
connecting');
?>