summaryrefslogtreecommitdiff
path: root/includes/funktion_db_list.php
diff options
context:
space:
mode:
authorichdasich <ichdasich@29ba0400-6e00-0410-a75a-ca02368028f8>2008-09-10 03:42:44 +0000
committerichdasich <ichdasich@29ba0400-6e00-0410-a75a-ca02368028f8>2008-09-10 03:42:44 +0000
commitb00d5b96c6d33572b6d7c68688d6d1c4fbd0f0f4 (patch)
treecf02da8b2839bea3b6a966b575f2ba84966676bb /includes/funktion_db_list.php
parent34aff10f383fe963cd3f8fd7f096321302e1efb6 (diff)
moved /inc to ../includes
git-svn-id: svn://svn.cccv.de/engel-system@281 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'includes/funktion_db_list.php')
-rwxr-xr-xincludes/funktion_db_list.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/includes/funktion_db_list.php b/includes/funktion_db_list.php
new file mode 100755
index 00000000..fbf1c821
--- /dev/null
+++ b/includes/funktion_db_list.php
@@ -0,0 +1,34 @@
+<?PHP
+
+function funktion_db_list($Table_Name) {
+
+ global $con;
+
+$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>";
+}
+
+?>