i encountered problem in connecting mysql with my localhost. mysql_connect('localhost'); reports warning that cannot connect to local host. i checked all parameters in configuration file php.ini. can any body help me???
Excuse me, didnt you just post this?
it would be $connect = mysql_connect('localhost','Your damn username','Teh password');
i have tried that also and still it is not working
Do you even have a database with the right username and password? Is the database on your computer, or the server where your uploading you files?
Considering you don't have any passwords on the DB, try using
$connect = mysql_connect("localhost","root","");