PHP-CRUD-2 : How to Insert data into database in php
In this post, you will be learning about how to insert data into database in php mysql, so, lets create a table named student to insert data in mysql using php as given in STEP 1.
We are using Bootstrap v4 to design the user interface like forms and table.
So, Let's get started: (To insert data into database in php mysql).
Step 1: Create a database phpcrud and in that create a table named student :
Step 2: Create a file named insertdata.php and we will use bootstrap to design the form and store data through that html form, where code given below:
Now, we have successfully created the HTML FORM using Bootstrap to insert data in STEP 2, so guys now lets write the code to insert data into database in php mysql in the same file just you created. (insertdata.php).
Paste the below given code at the TOP of the FILE named (insertdata.php)
Thanks for reading...
Latest PostsPHP AJAX CRUD - 4 | How to edit data or fetch data in TextBox in Pop up modal without page refresh PHP AJAX CRUD - 3 | How to fetch single data in pop up modal without page reload using jQuery Ajax PHP AJAX CRUD - 2 | How to Store data without page reload in database using jquery ajax in php PHP AJAX CRUD - 1 | How to Fetch data from database using jquery ajax in php HINDI PHP-CRUD-4 : How to delete data from database in php PHP-CRUD-3 : How to edit and update data into database in php mysql PHP-CRUD-2 : How to Insert data into database in php PHP-CRUD-1: How to Fetch data from Database in php PHP CRUD using Bootstrap Modal with DataTable (Search Box and Pagination)
© Copyright - 2018 - 2021 | All rights reserved at Funda of Web IT