I am not able to upload image, I tried using the below code to display. But nothing gets displayed.
PHP Code is as
$question_image = $allquestion["'ques_image'"];<br>
$imagetemp = $_FILES[$question_image]['name'];<br>
echo "IMAGE NAME".$imagetemp;
And Returned Array
Array
(
[1] => Array
(
['ques_title'] => Question 1
['ques_image'] => galaxy_s7_black.png
['choice'] => Array
(
[0] => Array
(
[0] => Question 1 - First Choice
[1] => 127
)
[1] => Array
(
[0] => Question 1 - second Choice
[1] => 128
)
)
)
[2] => Array
(
['ques_title'] => Question 2
['ques_image'] => iphone7_rosegold.png
['choice'] => Array
(
[0] => Array
(
[0] => Question 2 - First Choice
[1] => 131
)
[1] => Array
(
[0] => Question 2 - second Choice
[1] => 132
)
)
)
)
How to upload image in a multidimensional array loop.
ques_imagecontains image name only of the image file?print_r( $_FILES)what it will return ?enctype=multipart/form-data?