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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 04:01:38 2024 UTC