Insert Data Into a Database Table using MySQL and PHP

The INSERT INTO statement is using to insert new records in a table.

INSERT INTO table_name (column1, column2, column3,…)
VALUES (value1, value2, value3,…)

OR

INSERT INTO table_name
VALUES (value1, value2, value3,…)

mysqli_connect() function
<?php

?>