"); // tell browser table to be produced
while ($itemArray=fgetcsv($filePointer)) {
$id = $itemArray[0];
$name = $itemArray[1];
$cost = $itemArray[2];
// print detail line as table row and data cells
print ("
$id
$name
$cost
");
}
print(""); // send table end tag
fclose($filePointer);
?>