hi this is my code for uploading images into data base which is woring fine, but i want to upload multiple images an any one help me.
Code:
<?php
include 'config.php';
error_reporting(E_ALL ^ E_NOTICE);
if(isset($_POST['submit']))
{
$target = "http://bytes.com/images/";
$target = $target . basename( $_FILES['photo']['name']);
$name = $_POST['name'];
$pic = ($_FILES['photo']['name']);
$sql = mysql_query("INSERT INTO `myimages` (`name`, `picture`) VALUES ('$name', '$pic');");
if(move_uploaded_file($_FILES['photo']['tmp_name'], $target))
{
echo '<center>Image uploaded Saved Success</center>';
}
else
{
echo '<center>Not Saved</center>';
}
}
?>
Comment