Hi I have a confusion and I am not able to do this task.
I wanted to insert text from $_POST and images from $_FILES simultaneously in mysql db In following order.
TEXT (1)
IMAGE (2)
TEXT (3)
TEXT (4)
IMAGE (5)
For getting this output I named every input as 1,2,3, and so on for getting considered in an order.
<input type="text" name="1">
<input type="file" name="2">
<input type="text" name="3">
<input type="text" name="4">
<input type="file" name="5">
Now I have applied loop to manually encounter each input. But I think that's useless because I can only apply loop on either $_POST or $_FILES at a time. And ultimately I get output as
//If I consider POST DATA first
TEXT (1)
TEXT (3)
TEXT (4)
IMAGE (2)
IMAGE (5)
//If I consider FILES DATA first
IMAGE (2)
IMAGE (5)
TEXT (1)
TEXT (2)
TEXT(4)
/
how do I perform this task? Can Anyone help?