Hi All,
I've been trying to run a mysql_connect using variables, but seem to be having problems. EX., when I use
$host = "localhost";
$user = "ross";
$pwd = "password";
sql_id = mysql_connect($host,$user,$password);
I get an error which states:
Warning: Access denied for user: 'ross@localhost' (Using Password: Yes)
1044: Access denied for user. '@' to database 'test_db'
On the other hand, if I hard code in the same connection parameters, I can connect with no problems.
I'm new to PHP, so this might seem trivial, but I just can't get the darn thing to work.
Any help would be appreciated,
Thanks,
Ross