Insert Data Into Table in Database through PHP:

To insert data in database first create a table in the database. Now you can insert data into table by insert query.


$sql = “ insert into table_name (column1, column2,….) values (val1, val2,….)”;


We created the table “employee_details” in “employee_info” database. In that table we have 5 columns and we now insert data in table through insert query.



Leave a Reply

Your email address will not be published. Required fields are marked *