|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19360 cant assign value returned by mysql_error to a variable
Submitted: 2002-09-11 11:10 UTC Modified: 2002-09-11 12:03 UTC
From: fred0226 at yahoo dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.2.2 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: fred0226 at yahoo dot com
New email:
PHP Version: OS:


 [2002-09-11 11:10 UTC] fred0226 at yahoo dot 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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-11 12:03 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

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.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 05:01:29 2024 UTC