I'm developing a frontend for mysql in php, and i need to check wether hostname is a valid mysql-connection.
I tried using just mysql_connect($host, $user, $pass), and got error messages printed all over the screen. The function worked for it's purpose, but i want rid of all the errormessages.
It's like this: I want the return 1(true) if selected server(with user and password) is correct, or otherwise if else 🙂
I'm not sure if i'm clear enough in my descibing the problem, but my head is totaly lost in a chaos of code right now....
tnx!
PS! this is a great forum btw, saved me many times 🙂