change mysql authentication error diaplay
am 16.11.2006 17:11:50 von phpmergerHi guys
I want to have my custome error display when there is a wrong user name or
pwd.
[code]
$host="localhost";
$user="root";
$password="test";
mysql_connect($host,$user,$password);
$sql="show status";
$result = mysql_query($sql);
if ($result == 0)
{
echo "
Check user name or password
";"Error " . mysql_errno() . ": "
. mysql_error() . "";
}
else
echo "con ok";
?>
[/code]
now if I remove this
[code]
"Error " . mysql_errno() . ": "
. mysql_error() . "";
[/code]
I get an error. I just want to display [b]Check user name or password[/b]
when there is an error
in user id or pwd.
Any one?? Thanks
--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=gcdmw-win32@m.gmane.org