summaryrefslogtreecommitdiff
path: root/includes_old/funktion_db_list.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-09-14 22:54:36 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-09-14 22:54:36 +0200
commitd194783e8f2aa2e9e27e34572cda6f796930ac37 (patch)
tree7e9e70c8ee3a1acef34cbce884051e3d8e38cd5d /includes_old/funktion_db_list.php
parent1342dc49cf1789f9d54cb3c7be327c68f403a0f7 (diff)
cleanup from old files
Diffstat (limited to 'includes_old/funktion_db_list.php')
-rw-r--r--includes_old/funktion_db_list.php62
1 files changed, 0 insertions, 62 deletions
diff --git a/includes_old/funktion_db_list.php b/includes_old/funktion_db_list.php
deleted file mode 100644
index 35bb7255..00000000
--- a/includes_old/funktion_db_list.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-
-// Gibt eine Tabelle generisch als HTML aus
-function funktion_db_list($Table_Name) {
- global $con;
-
- $html = "";
-
- $SQL = "SELECT * FROM `" . $Table_Name . "`";
- $Erg = mysql_query($SQL, $con);
-
- // anzahl zeilen
- $Zeilen = mysql_num_rows($Erg);
-
- $Anzahl_Felder = mysql_num_fields($Erg);
-
- $html .= "<table class=\"border\" cellpadding=\"2\" cellspacing=\"1\">";
- $html .= "<caption>DB: $Table_Name</caption>";
-
- $html .= "<tr class=\"contenttopic\">";
- for ($m = 0; $m < $Anzahl_Felder; $m++) {
- $html .= "<th>" . mysql_field_name($Erg, $m) . "</th>";
- }
- $html .= "</tr>";
-
- for ($n = 0; $n < $Zeilen; $n++) {
- $html .= "<tr class=\"content\">";
- for ($m = 0; $m < $Anzahl_Felder; $m++) {
- $html .= "<td>" . mysql_result($Erg, $n, $m) . "</td>";
- }
- $html .= "</tr>";
- }
- $html .= "</table>";
- return $html;
-}
-
-function funktion_db_element_list_2row($TopicName, $SQL) {
- $html = "";
- $html .= "<table class=\"border\" cellpadding=\"2\" cellspacing=\"1\">\n";
- $html .= "<caption>$TopicName</caption>";
- # $html .= "<tr class=\"contenttopic\"> <td><h1>$TopicName</h1></td> </tr>\n";
-
- $Erg = sql_query($SQL);
-
- $html .= "<tr class=\"contenttopic\">";
- for ($m = 0; $m < mysql_num_fields($Erg); $m++) {
- $html .= "<th>" . mysql_field_name($Erg, $m) . "</th>";
- }
- $html .= "</tr>";
-
- for ($n = 0; $n < mysql_num_rows($Erg); $n++) {
- $html .= "<tr class=\"content\">";
- for ($m = 0; $m < mysql_num_fields($Erg); $m++) {
- $html .= "<td>" . mysql_result($Erg, $n, $m) . "</td>";
- }
- $html .= "</tr>";
- }
- $html .= "</table>\n";
- return $html;
-}
-?>