I wanna store multiple images into database with single column show i was designed code but my code is not working properly actually image uploading successfully and also store database record in single column but not uploading local directory folder i want this image upload in database and also upload local directory folder
Note: i don't want to store file type, size, etc.. i want only image
i have two field in database 1st one is id another is image
here is the my php code
$R_Prop_Images =$_FILES["R_Prop_Images"]["name"];
$location="../property_images/";
$R_Prop_Images =implode(", ",$R_Prop_Images);
if(!empty($R_Prop_Images)){
foreach ($R_Prop_Images as $key => $val) {
$targetPath=$location .$val;
move_uploaded_file($_FILES["R_Prop_Images"]["tmp_name"][$key], $targetPath);
}
}
here is the my html code
<span class="btn_upload">
<input type="file" id="imag" title="" name='R_Prop_Images[]' class="input-img" multiple />
<span>UPLOAD FILES</span>