<form action="slike.php" method="post" enctype="multipart/form-data">
<p>Pictures:</p>
<tr>
<td><input type="file" name="pictures[]" /></td>
<td><p><input type="file" name="pictures[]" /></p></td>
<td><p><input type="file" name="pictures[]" /></p></td>
<td><input type="submit" value="pošalji" /></td>
</tr>
</form>
<?
foreach ($_FILES["pictures"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
echo"$error_codes[$error]";
move_uploaded_file(
$_FILES["pictures"]["tmp_name"][$key],
$_FILES["pictures"]["name"][$key]
) or die("Problems with upload");
}
}
?>
i sad mene zanima sto trebam napisat u slike.php da mi ih prebacuje u bazu(nemojte mi rec da nije dobro prebacivat na bazu, ili mi objasnite kako to nesto napravit ) Hvala vam !
