HI, I'm looking to take the data from a CSV file, then upload it into a
mysql databace.
I figure i will need the following.
To count the number of lines ... and cut up each line in its veriables then
entering it into the databace.
I have:
$file = fopen(pricelist-snippet.csv,r);
$buffer =
hi mark!
i import data all the dang time and this is what i use (more or less)
?
$file = file(sompath/somefile.csv);
for($a=1;$acount($file);$a++)
{
$d = csv_parse($file[$a],,);
$first_name = make_safe($d[0]);
$last_name = make_safe($d[1]);
Subject: [PHP] fopen and file dump to a databace...
HI, I'm looking to take the data from a CSV file, then upload it into a
mysql databace.
I figure i will need the following.
To count the number of lines ... and cut up each line in its veriables
then
entering it into the databace.
I have
3 matches
Mail list logo