Hello all,
a few things csv related;
first how can I page fGetCsv ?
lets say I want to return somestring in chuncks of 20 then display page 1, 2,3 etc links
$rows = 0;
while ($data = fGetCsv ($csv_fp, 10000, ","))
{
if($rows == 0){
// DO NOTHING THIS IS COL HEADER ROW |||
}else{
$somestring = $somestring ."".$data[6]."','".$data[9]."','".$data[7]."','".$data[11]."','".$data[10]."','0','".trim($data[3])."','".$_GET['mer']."'";
}
$rows++;
}
Next how can I filter based on price high and low, row 0 is the column headers of the csv file
with asp I can simply connect to and use a sql statment as I would a database can we not do this with PHP?
Thanks all in advance