Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!is_dir($diretorio)){ echo "Pasta $diretorio nao existe";}
- else { echo "A Pasta Existe<br>";
- $arquivo = isset($_FILES['arquivo']) ? $_FILES['arquivo'] : FALSE;
- $nome = 'test';
- for ($k = 0; $k < count($arquivo['name']); $k++)
- {
- $destino = $diretorio."/".$nome.$arquivo['name'][$k];
- $imgs = $arquivo['name'];
- $array = implode(',', $imgs);
- var_dump($array);
- $inserir->insert('test', ' img=? ',array($array));
- if (move_uploaded_file($arquivo['tmp_name'][$k], $destino))
- {
- echo "foi";
- }
- else
- {
- echo "não foi";
- }
- }
- } // fecha else
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement