Eric Rohloff wrote:
You need to use a little php to sparse the file. I use mysql myself but Prism is our resident expert on csv to php. He may chime in here at some time but until then this should get you started.
You need to use a little php to sparse the file. I use mysql myself but Prism is our resident expert on csv to php. He may chime in here at some time but until then this should get you started.
<?PHP
$file_handle = fopen("form-results.csv", "r");
while (!feof($file_handle) ) {
$line_of_text = fgetcsv($file_handle, 1024);
print $line_of_text[0] . $line_of_text[1]. $line_of_text[2] . "<BR>";
}
fclose($file_handle);
?>
$file_handle = fopen("form-results.csv", "r");
while (!feof($file_handle) ) {
$line_of_text = fgetcsv($file_handle, 1024);
print $line_of_text[0] . $line_of_text[1]. $line_of_text[2] . "<BR>";
}
fclose($file_handle);
?>
Thanks for this Eric!
What would be the best way to style this so that the headers and values can be centered in columns?