note 11255 added to mysql_error

From: Date: Tue, 13 Feb 2001 06:23:52 +0000
Subject: note 11255 added to mysql_error
Groups: php.notes 
Request: Send a blank email to php-notes+get-10975@lists.php.net to get a copy of this message
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). http://www.php.net/manual/en/function.mysql-error.php

« previous php.notes (#10975) next »