CSV - Display Values
Posted on 2004-11-24
I'm trying to make a php script to output a csv file.
What I'd like to happen is to have a max of 10 results per page, and a next page previous page option.
This is the code I've got so far, it may be simpler to just start again I don't mind either away. Just as long as the list is split into the same elements.
$filename = "example.csv";
$id = fopen($filename, "r"); //open the file
while ($data = fgetcsv($id, filesize($filename))) //start a loop
$table = $data;
fclose($id); //close file
foreach($table as $row)
foreach($row as $data)
list ($key_number, $title, $sub_title, $category, $extra, $x, $y) = $line;