Well, explode, then loop through....
<?php
// Get the contents into a varialbe [possibly file_get_contents('some_file.csv') ]
// We'll say the contents of the CSV are placed into the variable "$contents"
// Break each line up
$lines = explode("\n", $contents);
// Now, loop through each line, and make a new row...
for($i=0; $i<count($lines); $i++)
{
$rows .= '<tr>';
$items = explode(","$lines[$i]);
foreach($items as $item)
{
$rows .= ($i == 0)?'<th>':'<td>';
$rows .= trim($item);
$rows .= ($i == 0)?'</th>':'</td>';
}
$rows .= '</tr>';
}
// Then just echo out the table
echo '<table>'.$rows.'</table>';
?>
~Brett
EDIT:
Just ran a quick test on my local server, works perfectly. Just need to add your own formatting to the table and you're set to go!!
[right]Nov. 30 @ 12:05 PM EST[/right]