Well, I've decided I would start seriously learning PHP. I've decided to mess with some pre-made scripts to get a feeling of how to build my own. My goal is to build a very simple CMS which will basically only have functions for adding new articles and editing them.
Right now I am building a login script which is copied exactly from this tutorial http://www.evolt.org/php_login_scrip...ber_me_feature
I'm running everything from my local machine on a xampp server. This is what I have in the database.php file
PHP Code:
<?
/** * Connect to the mysql database. */ $conn = mysql_connect("localhost", "akon", "aKon") or die(mysql_error()); mysql_select_db('akon', $conn) or die(mysql_error());
?>
On the main.php page it comes up with the error Warning: mysql_connect() [ function.mysql-connect]: Access denied for user 'akon'@'localhost' (using password: YES) in C:\xampp\htdocs\konetcms\database.php on line 6
Access denied for user 'akon'@'localhost' (using password: YES)
I've checked the passwords and everything is correct. I'm not sure why I've got this error and I've tried searching google for an answer with no help.
If you could tell me why I'm getting this it would be great.
Thanks
__________________
Alex
|