$file_handle = fopen("data.txt", "r");
while (!feof($file_handle)) {
$line = fgets($file_handle);
$array= explode(' ',$line);
$sql='insert into resume(id,name) value($array[0],$array[1])';//並湊SQL語句
echo $sql.'<br>';//這裡換作數據庫插入操作即可
}
fclose($file_handle);