Code: Select all
<?php
foreach($_POST as $key => $value){
echo $key.' '.$value.'<br>';
INSERT INTO table_name (column1, column2, column3,...)
VALUES (value1, value2, value3,...)
}
?>it would be INSERT INTO table_name($key, $key2, $key3,etc)
VALUES($value,$value2,$value3,etc)
Do I need more arrays than the $_POST? How to create them and set some code in action.
Thanks