Introduction
XAMPP stands for Cross-Platform (X), Apache (A), Maria DB (M), PHP (P) and Perl (P). It is developed by friends of Apache. XAMPP Server is a local WebServer to run the scripting language (PHP, PERL) and this is open source. It includes Apache and MySQL, FileZilla, Mercury and Tomcat.
Here, I am going to show how to create a database and insert the data into the database, using XAMPP Server.
Requirements
- XAMPP Server
- Brackets (IDE)
- Little bit of Web development knowledge
Steps which should be followed are given below.
Carefully follow my steps to create a database and insert the data into the database, using XAMPP Server and I have included the source code given below.
Step 1
Download the latest version of Windows XAMPP Server from the Webpage given below.
Download link: https://www.apachefriends.org/download.html

Step 2
Select your language and click Next.

Step 3
Choose your destination folder.

Step 4
Select all the Services, followed by clicking Install.

Step 5
This is XAMPP Control panel. Start Apache and MySQL Server. Now, provide the permission for Apache and MySQL accesses the firewall.

Step 6
Open your Browser, followed by typing http://localhost or http://127.0.0.1. Afterwards, you will see XAMPP community page.

Step 7
Open the XAMPP Control Panel, followed by clicking MySQL admin.

Step 8
Create the new database and click New.

Step 9
Put the database name as whatever you want. Here, the database name tutorial is given. Click Ceate.

Step 10
Go to SQL query tab, copy and paste the query given below. Click Go. Afterwards, your table (my table name : person) creates successfully.
MySQL query
- CREATE TABLE `person` (
- `Id` int(11) NOT NULL,
- `Name` varchar(20) NOT NULL,
- `Email` varchar(25) NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Step 11
Put your Webpage files into the destination folder. Default folder is c:/xampp/htdocs.

Step 12
Open the bracket (IDE) and create the index.html file. Copy the code given below and paste into index.html.
Index.html






Ganeshan NPosted Apr 8, 2017, 12:48 AM
I will show you in my next article
Ajit SPosted Apr 8, 2017, 12:42 AM
how to show that insert message in my web page