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.

Share this post


Link to post
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. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...