Title says it all, Below is my connection code.
PHP Code:
<?php
define('DB_NAME', 'user_name');
define('DB_USER', 'db_name');
define('DB_PASSWORD', 'password');
define('DB_HOST', 'localhost');
$conn = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die ('Error connecting to mysql');
mysql_select_db(DB_NAME);
?>
Can anyone see why im getting this error?
I have access to the databse, and the user and pass im using are correct and its still not working :\