Edit: misspelled a variable. I had checked for this, too.
Issue connecting to a database.
Moderator: General Moderators
Issue connecting to a database.
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.
Edit: misspelled a variable. I had checked for this, too.
- smpdawg
- Forum Contributor
- Posts: 292
- Joined: Thu Jan 27, 2005 3:10 pm
- Location: Houston, TX
- Contact:
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
error_reporting(E_ALL);
http://us2.php.net/error_reporting
-
thegreatone2176
- Forum Contributor
- Posts: 102
- Joined: Sun Jul 11, 2004 1:27 pm
the connection for your database should look like this
Using Password: No, means that you didn't supply a password or your page is not reading the database connection.
Code: Select all
$handle = mysql_connect("localhost", "username", "password");
mysql_select_db("database_name", $handle);