Ver Mensaje Individual
  #20 (permalink)  
Antiguo 26/07/2004, 11:08
pmolina
 
Fecha de Ingreso: octubre-2003
Mensajes: 21
Antigüedad: 20 años, 5 meses
Puntos: 0
Parece que tengo otros errores :)

Tengo el siguiente codigo html

Código HTML:
<form action="procesar_archivo.php" method="post" enctype="multipart/form-data">
    <table cellpadding="5" border="2">
    <tr>
         <td colspan="2"><input type="file" name="textfile" /></td>
        <td><input type="submit" name="btnLDI" value="Enviar" /></td>
    </table
>

este pasa al script de php procesar_archivo.php el cual es el siguiente

Código PHP:
<?
echo $textfile;
mysql_query ("LOAD DATA LOCAL INFILE '$textfile' INTO TABLE archivo FIELDS TERMINATED BY ',' ESCAPED BY '\\' LINES TERMINATED BY '\r\n'");
echo 
mysql_error();
?>
creo que tengo algun error con el manejdo del archivo...antes de cargar los datos en la tabla mysql

De ante mano Gracias !!!!