I have a basic script that I'm using to display raw data from a csv file on a website:
<?php
$file = "myfile.csv";
$fh = fopen($file, "rt");
$userdata = fread($fh, filesize($file));
fclose($fh);
echo $userdata;
?>
The csv file header looks like this:
Date/Time,MPSAS,NELM,SerialNo,Protocol,Model,Feature,Temp©
What I need is a simple four column table with Data/Time, MPSAS, NELM, and Temp © displayed. The other columns are not needed.
I have searched the forum for an answer but to no avail.
Any help would be greatly appreciated!
Thanks for the help.