note 11255 deleted from function.mysql-error by didou
| From: | didou@php.net | Date: | Sat, 16 Aug 2003 09:34:31 +0000 |
| Subject: | note 11255 deleted from function.mysql-error by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54310@lists.php.net to get a copy of this message | ||
Note Submitter: philip@thepr()jects.()rg
----
A fairly common use with mysql_ functions is as such :
$sql = 'SELECT * FROM tablename';
$result = mysql_query($sql) or die(mysql_error());
If an error exists, it'll output the mysql error and the script will immediatly die (stops
parsing).