...but in my case it allows admin to upload 12 pictures along with some data...
You need to take care of following things:
Name the fileds that insimilar fashion and with the number so you can loop through them...
I did the following: I named fields I use to upload pictures like pic1, pic2, pic3, etc their description in fields desc1, desc2, desc3... you get the picture...
This way when I check the data I do the following :
create a loop that goes from 1 to 12 (3 in your case) like:
$i=0;
while($i<12){
$i++;
$des = "desc".$i;
$pi = "pic".$i;
//similar to whatever fields you do have
if(isset($_POST[$des])){
//do whatever checking you want
}
}
When it comes to inserting the data into database I inserted all 12 pictures in different rows but you can when $i is 1 to use INSERT statement and retrieve mysql_insert_id() to use in latter UPDATE statements and all three fields will be inserted in one table row...
Now for the specs of what exactly you need this script to do fill in the blanks... I hope this little help is usefull to you...
If anyone has a better solution please respond: this is merely one way of doing, this but I'm sure that there are another - better ones...