well i ve tried to do it with the LOAD DATA INFILE but only on MySQL which inserts the values to the table
but when i execute the query through a PHP file does not do it.
this is the code
.........
else if (isset($_POST['bt4']))
{
$popStud =
"LOAD DATA INFILE stud.txt INTO TABLE student FIELDS TERMINATED BY '|' ESCAPED BY '\' LINES TERMINATED BY '\r\n'";
$res_pop = $db->query($popStud);
}