View Single Post
Old 05-31-2005, 07:01 AM  
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
something like:

Code:
$txt_array = file('/path/to/file.txt');
$db = ....connect to db

for($i=0;$i<count($txt_array);$i++)
{
  $sql = "insert into something where
}

...
FUCK THAT...

Can't you just format your text file like how the table is formatted and run something like:

>load data infile .....

-- search good for "load data in file" -- that'd be the fastest and easiest if possible.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote