php-form-2
Simple Form By Using PHP - MYSQL - AJAX
http://php-form.ga/
Demo:How To Use
-
Download XAMPP from https://www.apachefriends.org/download.html
-
Install it in C:/ drive.
-
Download the files.
-
Create a new folder in C:\xampp\htdocs\ and copy thes files in that folder.
-
Run the XAMPP and start the APACHE and MYSQL.
-
Click on the MYSQL admin button, this will open the phpmyadmin in your Browser.
-
From left side click on New and write the databse name "formdb" and click Create.
-
Give the table name "candidates" and select 5 columns and click Go.
-
Enter => [ "id", "int(255)", "primary", "auto increment (A.I)" ]
-
Enter => [ "Names", "varchar(255)" ]
-
Enter => [ "Emails", "varchar(255)" ]
-
Enter => [ "Degree", "varchar(255)" ]
-
Enter => [ "Subject", "varchar(255)" ]
-
Now click Go and your table is created.
-
Create a new table name "degree" and select 2 columns and click Go.
-
Enter => [ "main_id", "int(255)", "primary", "auto increment (A.I)" ]
-
Enter => [ "degrees", "varchar(255)" ]
-
Now click Go and your table is created.
-
- Create a new table name "subject" and select 2 columns and click Go.
-
Enter => [ "id", "int(255)", "primary", "auto increment (A.I)" ]
-
Enter => [ "subjects", "varchar(255)" ]
-
Enter => [ "main_id", "varchar(255)" ]
-
Now click Go and your table is created.
-
Now GoTo C:\xampp\mysql\bin using cmd and enter "mysql -u root -p -h localhost" and press enter when ask password.
-
Enter "show databases;"
-
Select DataBase by entering "use formdb;"
-
To view your tables, enter "select * from degree;" and "select * from subject;"
-
Now Enter the following commands:
INSERT INTO degree values(1, 'Bachelor');
INSERT INTO degree values(2, 'Master');
INSERT INTO subject values(1, 'AI', '1');
INSERT INTO subject values(2, 'CS', '1');
INSERT INTO subject values(3, 'CE', '1');
INSERT INTO subject values(4, 'SE', '1');
INSERT INTO subject values(5, 'IT', '1');
INSERT INTO subject values(6, 'CS', '2');
INSERT INTO subject values(7, 'SE', '2');
-
Now Copy file path of index.php and run it on your Browser.
-
Replace the "file:///C:/xampp/htdocs" with "localhost".