I am begginer and I always have this problem when I am going to move my website from my computer to host or server, some codes can't run or I always see some errors.
I created a database and I set a privilege(username and password) but I have error yet.
This is the Error:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mypassword'@'localhost' (using password: YES) in /home/qmelkir/public_html/include/connect.php on line 5 Access denied for user 'mypassword'@'localhost' (using password: YES)
and this is mysql_connect order:
$con=mysql_connect('localhost',$password,$username) or die(mysql_error());
How to solve it?
and How to work on localhost to don't have problem with host and server?
thanks