Hola gnzsoloyo,
he probado tu codigo, pero no entra en la primera condicion, se me sale al else.
Código PHP:
$uploaddir ='csv/'; //upload directory
$uploadfile= $uploaddir.$_FILES['csv']['name']; //full path adn file name
if(move_uploaded_file($_FILES['csv']['tmp_name'], $uploadfile)){
$result=mysql_query("LOAD DATA LOCAL INFILE '$uploadfile' REPLACE INTO TABLE test FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n'");
}else{
echo "Aqui hay error";
}
¿Alguna idea?, esto me esta desesperando
Saludos