This is my first time using PHP can somebody tell me what ive done wrong. Thanks
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'scrossbuilder@72'@'184.168.46.160' (using password: YES) in /home/content/08/8778708/html/storescripts/connect_to_mysql.php on line 19
could not connect to mysql
<?php
// Created BY Adam Khoury @
Adam Khoury - 6/19/2008
/*
1: "die()" will exit the script and show an error statement if something goes wrong with the "connect" or "select" functions.
2: A "mysql_connect()" error usually means your username/password are wrong
3: A "mysql_select_db()" error usually means the database does not exist.
*/
// Place db host name. Sometimes "localhost" but
// sometimes looks like this: >> ???mysql??.someserver.net
$db_host = "scrossbuilder.db.8778708.hostedresource.com";
// Place the username for the MySQL database here
$db_username = "scrossbuilder@72.167.233.37";
// Place the password for the MySQL database here
$db_pass = "**********";
// Place the name for the MySQL database here
$db_name = "scrossbuilder";
// Run the actual connection here
mysql_connect("$db_host","$db_username","$db_pass" ) or die ("could not connect to mysql");
mysql_select_db("$db_name") or die ("no database");
?>
I hope this is all you need if not please let me know. Thanks