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
 [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

Pull Requests

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: Wed Dec 11 19:01:27 2024 UTC