Hi inkvc17,
bin mir nicht sicher, ob es genau Deine Werte wiedergibt...
Die Richtung sollte aber schon stimmen.
PHP-Code:
$row = mysql_fetch_array($result);
$anz_pro_spalte = 10;
echo '<table border="1">'."n";
for ($i = 0; $i < count($row); $i++) {
/*
Mit Modulo berechnen, wann ein <tr> eingefuegt werden soll...
*/
if ($i % $anz_pro_spalte == 0) {
echo '<tr>'."n";
}
echo '<td>';
$fieldname = 'z' . ++$i;
echo $fieldname;
echo '</td>';
echo '<td>';
$tmpfield1z = 'z' . ++$i . '_caption';
echo $row[$tmpfield1z]; # ohne die -> "
/*
Hier kommt dann die Abfrage fuer das GIF
*/
echo '</td>'."n";
if ($i % $anz_pro_spalte == $anz_pro_spalte - 1) {
echo '</tr>'."n";
}
}
echo '</table>';
Grüsse
chris17