Hello i have one tuff problem
ok i was writting a scrip to connect to a MySQL DB witch i have done many-a-time's, but with this script it dose not work heres the code
$connection = mysql_connect("localhost", "username", "password") or die(mysql_error());
$db = mysql_select_db("data") or die(mysql_error());
$query1 = "SELECT email,username FROM user";
$rs = mysql_query($query1) or die(mysql_error());
now when i run that i get
Access denied for user: 'username@localhost' (Using password: YES)
now the strange part if i go to my server and login using the command line i can login using that username and password, use that database, and run SQL on it
Any ideas on what is causing this
Thanks,
Don Gordon