Jump to content

PHP form unable to connect to phpmyadmin's mysql server


legalos77

Recommended Posts

I am in the middle of my first html/php/mysql project using xampp. I've been using this tutorial https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mysql-database-using-php/  on forms to try to create a working connection between my form and the database I've created evidenced by these pictures. http://imgur.com/a/7l5Ye

 

I think everything is coded correctly in the files but for some reason, I am still unable to connect to the custom database I created for my form, as evidenced by the error in the last picture. I've triple checked username and hostname for my phpmyadmin's mysql server, and not sure why it's not connecting my php file to the database. Any insight as to what is causing the error would be extremely helpful. Thanks.

Link to comment
Share on other sites

Yes, I saw that when I opened up phpmyadmin for first time and seeing a red line with a warning that there was no password, so I went in and added a password for 127.0.0.1, localhost. I can try to remove it and deleting the password from connect function to see if that works.

 

Ok, I'll check the tutorial out.

Edited by legalos77
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.