I'm currently trying to do is upload multiple images at the same time to the images table, does this have to be stored all together ie within a certain array? in order to stay that way ( link ), my problem is that the code I have makes me feel like I have to insert one by one to appear on the site like this :( link ) basically what I want is inside the image table store an image that contains several images to feed a slide.
$fdata = $_FILES['img'];
$uploads_dir = '/upload';
//echo count($fdata['name']);
for($i = 0; $i < count($fdata['name']); ++$i)
{
$data=date("ymd");
$query=("insert into 'portfolio_imagens' ('nome', 'descricao','cliente','imagem','publicacao') VALUES ('".$_POST['nome']."','".$_POST['descricao']."','".$_POST['cliente']."','".$name."','".$data."')"); $result=mysql_query($query);
$name = $_FILES['img']['name'][$i];
$temp_name = $_FILES['img']['tmp_name'][$i];
move_uploaded_file($temp_name, "$uploads_dir"."$name");
}