Hello all,
I had designed a working script in order to create / modify and delete sections from my website.
Then I decided to update it to $_POST variable but a problem came out with the following piece of code ....
for ($extract_array = 0; $extract_array < $_POST['sections_number_new']; $extract_array++) {
$dbqr = "INSERT betasom_sections SET
sections_ita="$_POST['section_ita_new[$extract_array]']",
sections_eng="$_POST['section_eng_new[$extract_array]']",
descriptions_ita="$_POST['description_ita_new[$extract_array]']",
descriptions_eng="$_POST['description_eng_new[$extract_array]']",
sections_address="$_POST['section_address_new[$extract_array]']";
}
Ok, through the sections_number_new variable it is indicated to the code how many sections have to be inserted ...
... the problem is just below ... since $_POST is already an array ... and since values have been collected into arrays already ... there are now arrays into an array ....
How could I successfully collect the values and pour them into the INSERT query correctly ?
Thanks a lot for any help provided,
powergen