hey,
I have a form with a bunch of tables in it. The amount of tables is deteremend by sql query. basically it's for a while() statment that generates the tables and filles out there fields.
I need to take thoes fields and based upon there data do something.
the layout is as follows.
description (text box);
Delete (check box);
order (drop down menue);
id (hidden text field);
All field names are called information[] (the [] makes it an aray).
so i have the following code in my php script.
//code to update the picture description
if(!isset($error) and isset($_POST['update_descriptions']))
{//start of if statment (change descritption)
if(is_array($_POST['information']))
{//start of if statment
$data=$_POST['information'];
}//end of if statment
}//end of if statment (change descritption)
I have tried so many things to try and pull out the data into seperate values with no luck.
basically my end result here would be a mysql string per html table. So if the script generates two html tables... i will need two mysql querys.
I know this can be done with some while() statments or foreach() statments... i'm just stuck on how to code it / format the code.
can ya help?