Jump to content
Larry Ullman's Book Forums

Recommended Posts

I have done all the coding perfect for 'Script 12.5 - add_entry.php. But if I add details to the title and entry fill in space it shows me the following errors:

 

Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\add_entry.php on line 14

Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\add_entry.php on line 15

Warning: mysql_error() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\add_entry.php on line 38

Warning: mysql_close() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\add_entry.php on line 43

 

if it might be the server that I'm using please help me to configure.

Link to comment
Share on other sites

Yes, so that first error is the important one, which says you're not using the right username/password combination for MySQL. I thiiiink by default there is no password for the root user in MySQL on XAMPP, but I could be wrong. I would try that unless you've actually set the root user password yourself. 

Link to comment
Share on other sites

 Share

×
×
  • Create New...