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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
17 + 35 = ?
Subscribe to this entry?

 
 [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 18 03:01:28 2024 UTC