1
Web Oriented Coding / Re: Is this good way to do it
« on: December 14, 2014, 02:33:50 pm »Code: (php) [Select]
<table>
<?php
if (($fp = fopen('test.txt', 'r'))) {
while (($data = fgetcsv($fp))) {
echo '<tr>';
foreach ($data as $value)
echo "<td>$value</td>";
echo '</tr>';
}
fclose($fp);
}
?>
</table>