Today I will teach you how to create PHP data insert script, using the Text, Html, CSS, Php, Mysqli.
For the data sending or retrieving it is important to use form element or we can say tags.
Like this <form method=”post” action=””></form>.
We are using method POST.
We have not set action attribute because we are giving action to current page.
- Create new folder in www name this folder Student_Record
- Create New File as index.php in your Student_Record folder
- Now Open your browser chrome or firefox type in address tab localhost/phpmyadmin
Make sure your wamp server or xamp server is turned on.
Create new database name this database record.
Then click on record and create new table in record.
Name the table student
Your student table structure will look like this.
Create columns like Name, Email, City, Website, Father, Mother. Give the VARCHAR to all, set the value 100 to all columns.
Your connection script will look like this