#19360 [Opn->Bgs]: cant assign value returned by mysql_error to a variable

From: Date: Wed, 11 Sep 2002 17:03:12 +0000
Subject: #19360 [Opn->Bgs]: cant assign value returned by mysql_error to a variable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19175@lists.php.net to get a copy of this message
ID: 19360 Updated by: sniper@php.net Reported By: fred0226@yahoo.com -Status: Open +Status: Bogus Bug Type: MySQL related Operating System: Windows 2000 PHP Version: 4.2.2 New Comment: Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2002-09-11 11:10:06] fred0226@yahoo.com Having a problem with the following code line: $ErrMsg = mysql_error(); No value is assigned to the $ErrMsg variable; However print "mySql error: " . mysql_error(); does echo the error message to the browser. What am I doing wrong or is this really a bug? Thanks, Fred ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19360&edit=1

« previous php.bugs (#19175) next »