Multiple image upload not working properly
<p>I have a photo-sharing blog where registered users upload images. The images then go to the Admin Panel where I review them and they get published after my approval.</p>

<p>I want to enable multiple image upload i.e. the users must be able to select and upload multiple images.</p>

<p>I have tried putting the <strong>multiple</strong> attribute in the code. It has enabled the multiple images to be selected and uploaded BUT only one image is showing up in my Admin Panel for approval and all other images are discarded. How can I fix that?</p>

<p>Here is the code for the upload page:</p>

<pre><code>&lt;?php include ('header.php');?&gt;

&lt;?php @session_start();?&gt;

&lt;div class="domainSearchComplex"&gt;
&lt;img src="theme_image/banner-mega.jpg" title="Change Image" style="width:960px; height:280px; margin-left:-55px !important;border-radius:15px;"&gt; &lt;/div&gt;

&lt;?php //include ('slider.php');
$username = $_SESSION['user'];
$type = $_SESSION['type']; 
$id_no = $_SESSION['id_no'];
if(isset($_POST['insert']))
{
$pic = $_FILES["image"]["name"];
$today = date('Y-m-d H:i:s');
if ($_FILES["image"]["error"] &gt; 0)
{ $msg= "Error........Code: " . $_FILES["image"]["error"]; }
else
{
$pic = uniqid().$_FILES["image"]["name"];
move_uploaded_file($_FILES["image"]["tmp_name"],
"posts_images/" . $pic);


$query ="insert into `all_images` (`id_no`,`user_name`,`image`,`status`,`date`) values ('$id_no','$username' ,'$pic','9','$today')";

if(mysql_query($query))      
            {                   
                $msg = "&lt;span style=\"color: green;margin-left:25px;margin-top:25px;\"&gt;Image Inserted Successfully...!&lt;/span&gt;";
                }
        else        
        {$msg = "Error in insertion.........".mysql_error();    }
}}  
?&gt;

&lt;div style="height: 0;" class="clear"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="clearfix" id="mainContent"&gt;

&lt;div class="clearfix" id="homeFeatured"&gt;

&lt;?php include ('sidebar.php');?&gt;

&lt;div style="width: 66%; float: left;"&gt;
&lt;h1 style="color:#DD003D; margin:39px 25px 17px 193px;"&gt;Post Your Images&lt;/h1&gt;
&lt;div class="tdp48 signupPart"&gt;

&lt;div class="signUp" style="width:603px !important; height:400px !important; margin:0px 11px 17px 11px  !important; border-radius: 8px;"&gt;

&lt;?php 
$qryc = "SELECT * FROM `register` where id_no='$id_no'";
$resc = mysql_query($qryc);
$rpc = mysql_fetch_array($resc);
$image = $rpc['image'];
?&gt;

&lt;form class="form2" enctype="multipart/form-data"  onsubmit="return validate();" method="post"&gt;
   &lt;div class="loginTag" style="margin-top:-14px !important"&gt;&lt;center&gt;
    &lt;br /&gt;&lt;?php echo @$msg;?&gt;

    &lt;table style="margin-top:70px;"&gt;
        &lt;tr&gt;
            &lt;td class="firstTd"&gt;&lt;label&gt;Image:&lt;/label&gt;&lt;/td&gt;
            &lt;td class="secondTd"&gt;&lt;input name="image" multiple="" id="image" type="file" value="" /&gt;&lt;/td&gt;
        &lt;/tr&gt;

        &lt;tr&gt;&lt;td colspan="2" align="center"&gt;&lt;input type="submit" value="INSERT" name="insert" class="btnSignup"  /&gt;&lt;/td&gt;&lt;/tr&gt;
    &lt;/table&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/ul&gt;
&lt;!--&lt;/div&gt;--&gt;
&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;

&lt;?php include ('footer.php');?&gt;

&lt;style&gt;.menu2 {margin-top:4px !important;}
&lt;/style&gt;
&lt;script type="text/javascript"&gt;

function validate () {

var image = document.getElementById('image').value; 

if (image == '') {

    alert ('Please enter your image');
    return false;
    }

}
&lt;/script&gt;
</code></pre>