i want to upload multiple images url into database , after which i will move the file to an upload folder, then want to display the images and possibly edit by changing or removing them. i've been able to do that with one, but want to do that for multiple pics.
this is my html
<section class="form-group">
<section class="col-md-12">
<label for="price">Add Image</label>
<input type="file" name="uploadedfile" id="uploadedfile" class="form-control" />
<input type="hidden" name="MAX_FILE_SIZE" value="100000">
</section>
</section>
Now my php script
$target_path="uploads/";
$target_path=$target_path.basename($_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
}
if($target_path==="uploads/"){
$target_path="images/no-thumb.png";
}
$query="insert into properties
(owner,email,contact,title,location,price,description,property_id,property_type,bedrooms,images,gsize,size,status,post_date)
values('$name','$email','$contact',
'$title','$location','$price','$description','$listid',$type','$bedroom','$target_path','$gsize','$size','$status',now())";
$result=mysqli_query($dbc,$query);
if($result){
echo '<p class="bg-success alert alert-success text-center">Property Listing Successful</p>';
}else{
echo '<p class="bg-danger alert alert-danger">My bad!!! Something went totally wrong. Try again later while i try to fix it <span class="close pull-right"> <span class="close pull-right"> <a href="#" >× </a></span></p>';
}
```