summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-11-27 19:44:03 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-11-27 19:44:03 +0000
commitf1b6bff8c0f0e67c83c660cee87e96d8e7f80437 (patch)
tree2a48bdb50540e13e7e7bb7896e1fc20ffae7fa34
parent0f86c7d022417c0c581c5cb0b2f5262c9cf705c7 (diff)
funktion wieder hinzugefuegt, hatte gedacht das sie nicht mher benoetigt wird
git-svn-id: svn://svn.cccv.de/engel-system@174 29ba0400-6e00-0410-a75a-ca02368028f8
-rw-r--r--www-ssl/inc/funktion_db.php29
1 files changed, 28 insertions, 1 deletions
diff --git a/www-ssl/inc/funktion_db.php b/www-ssl/inc/funktion_db.php
index 2975501b..8470d5d6 100644
--- a/www-ssl/inc/funktion_db.php
+++ b/www-ssl/inc/funktion_db.php
@@ -2,6 +2,33 @@
if( !function_exists("db_query"))
{
+ function Ausgabe_Daten($SQL)
+ {
+ global $con;
+ $Erg = mysql_query($SQL, $con);
+
+ echo mysql_error($con);
+
+ $Zeilen = mysql_num_rows($Erg);
+ $Anzahl_Felder = mysql_num_fields($Erg);
+
+ $Diff = "<table border=1>";
+ $Diff .= "<tr>";
+ for ($m = 0 ; $m < $Anzahl_Felder ; $m++)
+ $Diff .= "<th>". mysql_field_name($Erg, $m). "</th>";
+ $Diff .= "</tr>";
+
+ for ($n = 0 ; $n < $Zeilen ; $n++)
+ {
+ $Diff .= "<tr>";
+ for ($m = 0 ; $m < $Anzahl_Felder ; $m++)
+ $Diff .= "<td>".mysql_result($Erg, $n, $m). "</td>";
+ $Diff .= "</tr>";
+ }
+ $Diff .= "</table>";
+ return $Diff;
+ }
+
function db_querry_getDatenAssocArray($SQL)
{
global $con;
@@ -18,7 +45,7 @@ if( !function_exists("db_query"))
function db_querry_diffDaten($Daten1, $Daten2)
{
- $gefunden=False;
+ $Gefunden=False;
$Diff = "\n<table border=1>\n";
$Diff .= "<tr>\n\t<th>Feldname</th>\n\t<th>old Value</th>\n\t<th>new Value</th>\n";