obviously just the basics.... (all php)
## connect to your database stuff...
$row = 1;
$handle = fopen("
$datafeed","r");
while ($data = fgetcsv ($handle, 100000, ",")) {
$row++;
// opens the file specified by
$datafeed and calls all the columns $data[...]
$sql = "INSERT INTO tablename (all,your,stuff)
VALUES ('$data[0]', '$data[1]', '$data[2]')";
// where $data[0] is the first column, $data[1] is the second etc from the CSV file.
$result = mysql_query($sql);
}
fclose ($handle);
## close database connection
once you know which feed your using, you can do like str_replace on certain things to make it all tidy.
For datafeeds that are zipped you can use gzopen instead of fopen
lakrasia, this way saves you downloading the feeds, which can take a while. and it does all the matching up for you, which is always nice
hope its of use