![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
14/08/2008, 13:43
|
![Avatar de arielcasanova](http://static.forosdelweb.com/customavatars/avatar76805_1.gif) | | | Fecha de Ingreso: octubre-2004 Ubicación: Bahía Blanca - Argentina
Mensajes: 332
Antigüedad: 20 años, 4 meses Puntos: 1 | |
Respuesta: cómo inserto mùltiples registros en db, a la vez que subo archivos al serv hice tres vardumps:
var_dump( $_FILES['foto'] );
echo "<br/>";
echo "<br/>";
var_dump( $_FILES['archivo'] );
echo "<br/>";
echo "<br/>";
var_dump( $_POST['archivon'] );
echo "<br/>";
echo "<br/>";
y lo que obtengo es esto:
array(5) { ["name"]=> array(2) { [0]=> string(31) "Anibal_F_hiperfeliz_telam_1.jpg" [1]=> string(31) "Anibal_F_hiperfeliz_telam_1.jpg" } ["type"]=> array(2) { [0]=> string(10) "image/jpeg" [1]=> string(10) "image/jpeg" } ["tmp_name"]=> array(2) { [0]=> string(14) "/tmp/phpSCfsY2" [1]=> string(14) "/tmp/phprbL4vU" } ["error"]=> array(2) { [0]=> int(0) [1]=> int(0) } ["size"]=> array(2) { [0]=> int(19685) [1]=> int(19685) } }
array(5) { ["name"]=> array(2) { [0]=> string(13) "IMAGEN GD.txt" [1]=> string(41) "lost httpporsiemprelamoto.terapad.com.txt" } ["type"]=> array(2) { [0]=> string(10) "text/plain" [1]=> string(10) "text/plain" } ["tmp_name"]=> array(2) { [0]=> string(14) "/tmp/phpKdzphM" [1]=> string(14) "/tmp/phpCvLT2D" } ["error"]=> array(2) { [0]=> int(0) [1]=> int(0) } ["size"]=> array(2) { [0]=> int(217) [1]=> int(175) } }
array(2) { [0]=> string(3) "123" [1]=> string(3) "123" }
pareciera que a "archivo" y a "foto" los confunde. ¿ma per qué? |