I tried to connect to other website and my code below are :
$host = "$hostname";
$mysqlusername = "$username";
$mysqlpassword = "$password";
$mysqldatabase = "$mydatabase";
$mysqlconnection = mysql_connect($hostname,$mysqlusername,$mysqlpassword);
mysql_select_db($mysqldatabase,$mysqlconnection);
of course i supplied the right host name, username and password but still an error occur :
Warning: mysql_connect() [function.mysql-connect]: Access denied for user '$username'@'$hostname' (using password: YES) in /home/public_html/test_directory/sampleFile.php on line 7
Is there someone who could help me to solve, I would be greatful for your help.