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???
You need to also pass the username and password in the connect string. Look here