OK, I thought that they will add some rows each day and the database is already 40K. 
Then ask for a format with each row in a line,separated with commas and string data quoted.
Then parsing would be:
PHP Code:
<?
$fp = fopen($pathtofile,'r');
$line ='';
$data_arr = array();
while (!feof($fp)) {
$line = fgets($fp);
$tmp_arr = explode(',', $line);
array_push($data_arr, $tmp_arr);
$tmp_arr = array();
}
fclose($fp);
?>
This will give you a 2-dimensional array which you can loop and add data to your database.
Bookmarks