Assuming you dont want to display the second column, iterate through the numerically indexed array and exclude the ones you want, something like:
<?php
function jj_readcsv($filename, $header=false) {
$handle = fopen($filename, "r");
echo '<table width="400" border="1" bordercolor="#666666" cellspacing="0" cellpadding="2">';
//display header row if true
if ($header) {
$csvcontents = fgetcsv($handle);
echo '<tr>';
foreach ($csvcontents as $k => $v) {
if ($k != 1) {
echo "<th>$vth>";
}
}
echo '</tr>';
}
// displaying contents
while ($csvcontents = fgetcsv($handle)) {
echo '<tr>';
foreach ($csvcontents as $k => $v) {
if ($k != 1) {
echo "<td>$v</td>";
}
}
echo '</tr>';
}
echo '</table>';
fclose($handle);
}
?>