I need a PHP script that will check if the database information is correct, and if not, print out an error...
So far, this is what I got
And I have defined it all... Yet, I am sure where to go from here, like what else do I need around it, other then the PHP tags? ><Code:mysql_ connect("<?=$ config["database"];?","<?=$ config["user"];?","<?=$ config["pass"];?") or die ("Error!");
Anyone atleast got a hint?
Edit:
I kinda rushed this thread as I wanted to be first.. Hmpf, damn you TTT.
Oh well, I am pretty newb at MYSQL syntaxes and such, and even more with PHP, thats why I'm pretty bad at this.
I also had to add some spaces, because I aint able to edit the post otherwise... Hmpf.