Name der anzuzeigenden Tabelle
?>
NDB - Tabelle
";
$felder = mysql_list_fields($dbName,$tab);
echo "";
# ---------- die Tabellenk÷pfe ------------
$i=0;
while ($i < mysql_num_fields($felder))
{
$feldName = mysql_field_name($felder,$i);
if ($feldName == "mensch_id") $mensch_id_row=$i;
echo "" . $feldName . " | ";
$i++;
}
echo "
";
if ($tab == "Menschen") $mensch_id_row = -1;
# ----------- die Datenzeilen -------------
$daten = mysql_query("SELECT * FROM $tab");
$tabelleLeer = (mysql_num_rows($daten) == 0);
while ($zeile = mysql_fetch_row($daten))
{
echo "";
$i=0;
while ($i < count($zeile))
{
if ($i == $mensch_id_row)
echo '' . holeName($zeile[$mensch_id_row]) . " | ";
else echo "" . $zeile[$i] . " | ";
$i++;
}
echo "
";
}
?>