legalos77 Posted December 2, 2016 Share Posted December 2, 2016 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. Quote Link to comment Share on other sites More sharing options...
benanamen Posted December 2, 2016 Share Posted December 2, 2016 (edited) The default for Xampp is no password. FYI, that isn't really a good tutorial. If you are just starting out you should learn PDO instead of Mysqli. Here is a great PDO tutorial https://phpdelusions.net/pdo Edited December 2, 2016 by benanamen Quote Link to comment Share on other sites More sharing options...
legalos77 Posted December 2, 2016 Author Share Posted December 2, 2016 (edited) 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 December 2, 2016 by legalos77 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.