How to connect the Database with PHP DOM page ?

To connect the database with PHP DOM page, do the following steps:
1. Create Database: Create a database using XAMPP, the name of database is “loginpage”. You can give any name to your database.

2. Create Table: Create table, inside “loginpage” database.

3. Create Table structure: Table should contain fields, according to your needs.
For example: