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 !!!!