Jump to content

How to connect to other website from website i'm using


ron814

Recommended Posts

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.

 

 

 

And I already added the user to the database but same error occurs.

 

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.