View Single Post
Old 02-04-2013, 11:58 PM   PM User | #1
Jordann
New Coder

 
Join Date: Aug 2012
Location: New Zealand
Posts: 49
Thanks: 2
Thanked 3 Times in 3 Posts
Jordann is an unknown quantity at this point
Error: Access denied for user 'cookie'@'localhost' (using password: NO)

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_HOSTDB_USERDB_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 :\
Jordann is offline   Reply With Quote