tupakapoor
New Member
- Messages
- 25
- Reaction score
- 0
- Points
- 0
Can anyone tell me whats wrong with this code?
i copied that straight from Bryon's tutorial and its still not working. i'm not a programming n00b. i do this for a living. seriously, i work with php and mysql at my day job. and i still can't connect to mysql. :-( somebody pleeeeeeeeeease help me!!
this is the error that shows up on the page:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'kapoora'@'localhost' (using password: NO) in /home/kapoora/public_html/dirtybirdreport.com/functions.php on line 9
i dont know why its not using the username and pwd i'm passing in. is it possible that SQL Safe mode is on?
also with fantastico being down, is it now impossible to install WordPress?
Code:
$server = 'localhost';
$username = 'kapoora_dirtybd';
$password = 'XXXXXX';
$database = 'dirtybirdreport';
$mysqlconnection = mysql_connect($server, $username, $password);
$databaseconnection = mysql_select_db($database, $mysqlconnection);
i copied that straight from Bryon's tutorial and its still not working. i'm not a programming n00b. i do this for a living. seriously, i work with php and mysql at my day job. and i still can't connect to mysql. :-( somebody pleeeeeeeeeease help me!!
this is the error that shows up on the page:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'kapoora'@'localhost' (using password: NO) in /home/kapoora/public_html/dirtybirdreport.com/functions.php on line 9
i dont know why its not using the username and pwd i'm passing in. is it possible that SQL Safe mode is on?
also with fantastico being down, is it now impossible to install WordPress?
Last edited: