2005-09-10 19:25:43 +02:00
|
|
|
<?PHP
|
|
|
|
|
|
|
|
function funktion_db_list($Table_Name) {
|
|
|
|
|
2006-11-23 18:39:05 +01:00
|
|
|
global $con;
|
2005-09-10 19:25:43 +02:00
|
|
|
|
|
|
|
$SQL = "SELECT * FROM `".$Table_Name."`";
|
|
|
|
$Erg = mysql_query($SQL, $con);
|
|
|
|
|
|
|
|
// anzahl zeilen
|
|
|
|
$Zeilen = mysql_num_rows($Erg);
|
|
|
|
|
|
|
|
$Anzahl_Felder = mysql_num_fields($Erg);
|
|
|
|
|
|
|
|
echo "<table border=1>";
|
|
|
|
|
|
|
|
echo "<tr>";
|
|
|
|
for ($m = 0 ; $m < $Anzahl_Felder ; $m++) {
|
|
|
|
echo "<th>". mysql_field_name($Erg, $m). "</th>";
|
|
|
|
}
|
|
|
|
echo "</tr>";
|
|
|
|
|
|
|
|
for ($n = 0 ; $n < $Zeilen ; $n++) {
|
|
|
|
echo "<tr>";
|
|
|
|
for ($m = 0 ; $m < $Anzahl_Felder ; $m++) {
|
|
|
|
echo "<td>".mysql_result($Erg, $n, $m). "</td>";
|
|
|
|
}
|
|
|
|
echo "</tr>";
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "</table>";
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|