|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-08-14 05:33 UTC] zeev at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 09:00:02 2025 UTC |
In php3 I was able to call the mysql_error() whenever there was a mysql specific error (IE: If the script was not able to conect to the server it would display info about it), but it seems everytime the mysql_error() function is called under php4b2 it simply returns a NULL string. I've tested it under conditions where the mysql server is down, and the page displays the warning message cgenerated by php3's warning facility, but if I try to echo mysql_error() I retrieve nothing back. Could anyone tell me why this is, and if it's a big could you please notify me so I can be sure it's not just some stupid mistake on my part :) ************* MODULES COMPILED IN ************ mysql gd1.3 zlib ttf ************ SHORT SCRIPT ***************** $conn = mysql_connect("localhost","user","pass); // Server that is currently down. if(!$conn) { echo mysql_error(); exit; }