Re: Print mysql errors

From: Date: Tue, 21 Oct 2003 06:46:00 +0000
Subject: Re: Print mysql errors
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166908@lists.php.net to get a copy of this message
On Mon, Oct 20, 2003 at 05:28:08PM -0500, Joseph Bannon wrote: : : How do you print the error message sent back from MySQL? : : $resultCC = mysql_query($queryCC) or die("???"); Stop using stupid Perl syntax. $res = mysql_query($query); if ($res === false) { # print error to stdout # echo mysql_errno() . ": " . mysql_error(). "\n"; }

« previous php.general (#166908) next »