PHP and mySQL connection thingy in Off Topic
|
|
I've been working on this for days now. I have mySQL server and an FTP (website) and the PHP code for it ... NOTHING WILL WORK to make them connect .... i've tried my site name, my ip, localhost, local host with the default after it .....
<?php $con = mysql_connect(" ???? ","root","MY PASS HERE"); if (!$con) { die('Could not connect: ' . mysql_error()); } ?>
|
This is my code and I CANT MAKE IT WORK! the "?????" should be localhost or something but no matter what it is i get the "you couldnt connect" error. I think my name is root and i know wat my pass is. Any1 no how to do this ?? plz help!
|
Are you doing this on your own personal dev machine, or on a production server? Are you on Windows or on Linux? Are you using Appache? Are you fairly positive that MySQL is configured correctly?