php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-11 12:03 UTC] sniper@php.net
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.

 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Nov 27 19:03:46 2022 UTC