By 'home page' at
http://localhost I assume you mean the XAMPP welcome page. Please shout NO is not.
Ok, you can access phpMyAdmin and create databases therewith. That suggests that your XAMPP Apache installation is infact running MySQL and php satisfactorily to some extent. I conclude this because, that phpMyAdmin is infact a local web site that has php code accessing the local MySQL.
Note that the XAMPP installation comes with the phpMyAdmin configured to connect to and work with MySQL. With the user 'root' and to start with, a blank password, it knows what to do.
So, how are _your_ new php web pages connecting to _your_ new databases? Are you familiar with:
1. The php code to enable a web site to connect to a database?
2. MySQL user privileges for access and interacting with a database?
Eg php database connection:
- Code: Select all
$DB_USERNAME = "root"; // username for logging in to db
$DB_PASSWORD = "aPassWord"; // password for logging in to db
$DB_HOSTNAME = "localhost"; // server hosting db usually "localhost"
$DB_DATABASENAME = "yourDatabase"; // name of database containing your tables
This is an extract only, not a complete file. When you "... created two templates in html and created the php file ..." did you include something like this?