Hi.
This is my first week at trying out PHP and MySQL. I'm having problems and wonded if someone could help me.
I'm trying to connect to a MySQL database using:
<?php
mysql_connect("localhost","username","password") or die ("Unable to connect to MySQL server.");
$db = mysql_select_db("jokes") or die ("Unable to select requested database.");
?>
but I get this error message:
Warning: mysql_connect(): Access denied for user 'username'@'localhost' (using password: YES) in c:\inetpub\wwwroot\php\dbconnect.php on line 6
Unable to connect to MySQL server.
I'm new to this so can someone steer me in the right direction