i got this error after uploading all the files in www folder. i'm using webserver
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'aeoranny'@'loc alhost' (using password: YES) in /home/aeoranny/public_html/wedlock/connect.php on line 10
Code:
<?php /// For the following details, /// please contact your server vendor $hostname='localhost'; //// specify host, i.e. 'localhost' $user='server username'; //// specify username $pass='server pass'; //// specify password $dbase='mysql db'; //// specify database name $connection = mysql_connect("$localhost" , "$server user" , "$server pass") or die ("Can't connect to MySQL"); $db = mysql_select_db($dbase , $connection) or die ("Can't select database."); ?>
Comment