First upload success, but another upload always error
<p>I have a problem with file upload using PHP. I have a plan to upload image file and mp3 file at once using a form, but there are some errors.</p>

<p>I use the following code:</p>

<pre><code>session_start();
include 'koneksi.php';

$judul            = $_POST['judul'];
$keterangan       = $_POST['keterangan'];
$genre            = $_POST['genre'];
$dir              = './image/';
$dir_mp3          = './music/';
$upload           = $dir.$_FILES['gambar']['name'];
$hasil_upload     = @copy($_FILES['gambar']['tmp_name'], $upload);
$upload_mp3       = $dir_mp3.$_FILES['mp3']['name'];
$hasil_upload_mp3 = @copy($_FILES['mp3']['tmp_name'], $upload_mp3);

if($hasil_upload &amp;&amp; $hasil_upload_mp3) {
  $sql    = "INSERT INTO mp3 VALUES('','$judul','$keterangan','$genre','$upload','$upload_mp3')";
  $result = mysql_query($sql);

  mysql_query("ALTER TABLE mp3 DROP no");
  mysql_query("ALTER TABLE mp3 AUTO_INCREMENT=1");
  mysql_query("ALTER TABLE mp3 ADD no int UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST");

  header('location:index_admin.php');
}
else
{
  echo"error";
}
</code></pre>
