I am trying to format the csv reader to come out in that way: 1. somestuff, somestuff2, somestuff3 unfortunately the numbers are wrapping up at the top of the table instead of in beginning of the line. any help?
<?php
$row = 1;
$handle = fopen("random.csv", "r");
$number = 1;
echo("<table>");
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
echo($number . "." . " " . "<tr>\r\n");
foreach ($data as $index=>$val) {
echo("\t<td>$val</td>\r\n");
}
echo("</tr>\r\n");
$numer ++;
}
echo("</table>");
fclose($handle);
?>
<td>and not where you like them to be.