Hallo inspiron,
<?php
$files= array( 'name_A_2010.csv',
'name_B_2010.csv',
'name_C_2010.csv'
);
$data ='';
$table="\n";
$head ='<col width="300">';
$count=0;
// Zelleninhalt ($table) festlegen
for ($i=0; $i<sizeof($files); $i++){
echo $files[$i];
$handle = fopen($files[$i],"r");
for($j=0;$data = fgetcsv($handle, 150, ";");$j++){
// Jeweils 5. Zeile
if($j==4){
$table.="<tr>\n<td>".implode("</td>\n<td>",$data)."</td>\n</tr>";
$count =($count<($c=count($data))) ? $c : $count;
}
}
fclose($handle);
}
// Zellengröße ($head) festlegen
for($i=0;$i<$count;$i++){
$head.='<col width="25">'
}
?>
<html>
<!-- etc. -->
<table border="1">
<colgroup>
[code lang=php]<?php echo $head;?>
</colgroup>
<?php echo $table;?>
</table>
<!-- etc. -->[/code]
Gruß aus Berlin!
eddi