diff options
Diffstat (limited to 'inc/funktion_db_list.php')
-rwxr-xr-x | inc/funktion_db_list.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/inc/funktion_db_list.php b/inc/funktion_db_list.php deleted file mode 100755 index 894de5e5..00000000 --- a/inc/funktion_db_list.php +++ /dev/null @@ -1,34 +0,0 @@ -<?PHP - -function funktion_db_list($Table_Name) { - -include ("./inc/db.php"); - -$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>"; -} - -?> |