Hey all,

Probably a simple question -- I want to have the warnings / errors from a
php function sent to a variable.

When I use MYSQL_CONNECT I don't want the user to see the error message if
it fails. So I put an @ in front of the fuction. But I want to save the
warning message, so I can parse it and give the user a message in
englisjh, prompt for a new password if that is the problem, etc. Below
was a simple guess that doesn't work:



$error=@MYSQL_CONNECT($hostname,$username,$password);

Thanks,

Ben