title: How to have a multiple upload in PHP?
body: <pre><code>if(isset($_POST['upload'])){
     $name = $_POST['name'];
     $album_id = $_POST['album'];
     $file = $_FILES['file']['name'];
     $file_type = $_FILES['file']['type'];
     $file_size = $_FILES['file']['size'];
     $file_tmp = $_FILES['file']['tmp_name'];
     $random_name = rand();
     if(empty($name) or empty($file)) {
       echo "Please Fill all the Fields ! &lt;br /&gt;&lt;br /&gt;";
     } else {             
       move_uploaded_file$file_tmp, 'uploads/'.$random_name.'.jpg');
       mysql_query("INSERT INTO photos VALUE('', '$name', '$album_id', '$random_name.jpg')");             
       echo "Photo Uploaded !! &lt;br /&gt;&lt;br /&gt;";
     }
  }
  </code></pre>