Page 1 of 1
Issue connecting to a database.
Posted: Thu Feb 24, 2005 7:21 pm
by windwaker
I keep getting the error "Access denied to x, Using password: NO"... Does anyone know what's wrong with this? o_O A password was input.
Edit: misspelled a variable. I had checked for this, too.

Posted: Thu Feb 24, 2005 8:12 pm
by smpdawg
For testing and development you should turn on error reporting. This will make problems like that stand out.
error_reporting(E_ALL);
http://us2.php.net/error_reporting
Posted: Fri Feb 25, 2005 1:17 pm
by thegreatone2176
showing your mysql_connect statement would also help
Posted: Fri Feb 25, 2005 5:18 pm
by s.dot
the connection for your database should look like this
Code: Select all
$handle = mysql_connect("localhost", "username", "password");
mysql_select_db("database_name", $handle);
Using Password: No, means that you didn't supply a password or your page is not reading the database connection.