Hello any ideas or suggestion how to make conversion my .csv text to table?
Check this link for reference: http://vis.stanford.edu/wrangler/app/
Hello any ideas or suggestion how to make conversion my .csv text to table?
Check this link for reference: http://vis.stanford.edu/wrangler/app/
You can browse your .csv with fgetcsv and use foreach to browse the array returned. You simply displays the result.
Here is an exemple :
// Open the file with PHP
$oFile = fopen('PATH_TO_FILE', 'w');
// Get the csv content
$aCsvContent = fgetcsv($oFile);
// HTML Table
echo '<table>';
// Browse your csv line per line
foreach($aCsvContent as $aRow) {
// New table line
echo '<tr>';
// Browse your line cell per cell
foreach($aRow as $sContent) {
// New cell with the content
echo '<td>'.$sContent.'</td>';
}
// End the line
echo '</tr>';
}
// Close the HTML Table
echo '</table>';
// Close you file
fclose($oFile);
I have done this 3 weeks ago ^_^
If you have a problem, tell me. Maybe I can help you !