if(move_uploaded_file($_FILES['photo']['tmp_name'][$i],"photo/".$x[$i]))
{
$pict="photo/".$x[$i]."<br>";
echo $pict;
}
bu zaten başarılı olma durumunda çalışan betik.. { } arasına insert kodlarını da eklersen başarılı olma durumunda DB'ye kayıt eder.. yani mesela:
<?php
if(empty ($_POST['gonder']) ) {
?>
<form action="<? echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data" method="post">
<input type="file" name="photo[]">
<input type="file" name="photo[]">
<input type="file" name="photo[]">
<input type="file" name="photo[]">
<input type="submit" name="gonder" value="gonder">
</form>
<?php
}else{
/* eğer formdaki coklu yukleme alanı ne kadar ise asagıdaki 
kodları ona gore ayarlayin.eğer 5 li coklu yukleme alani yapılacaksa 
asagıdaki alana bir e değişkeni ilave etmeniz gerekecektir. yani dizi sayisi 4 olacak
sekilde */
$a=$_FILES['photo']['name'][0];
$b=$_FILES['photo']['name'][1];
$c=$_FILES['photo']['name'][2];
$d=$_FILES['photo']['name'][3];
if($a!=="") { $x=array($a); } 
if($b!=="") { array_push($x,$b); } 
if($c!=="") { array_push($x,$c);} 
if($d!=="") { array_push($x,$d); } 
$a=count($x);
$i=0;
while ($i<$a) { 
if(is_uploaded_file($_FILES['photo']['tmp_name'][$i]))
{
if(move_uploaded_file($_FILES['photo']['tmp_name'][$i],"photo/".$x[$i]))
{
$pict="photo/".$x[$i]."<br>";
echo $pict;
$sorgu = mysql_query('insert into resim values (...,...,.....)');
}
else
{
echo "hata oldu";
}
}
$i++;
}
}
?>