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
This commit is contained in:
cookie 2006-11-27 19:44:03 +00:00
parent 0f86c7d022
commit f1b6bff8c0
1 changed files with 28 additions and 1 deletions

View File

@ -2,6 +2,33 @@
if( !function_exists("db_query")) 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) function db_querry_getDatenAssocArray($SQL)
{ {
global $con; global $con;
@ -18,7 +45,7 @@ if( !function_exists("db_query"))
function db_querry_diffDaten($Daten1, $Daten2) function db_querry_diffDaten($Daten1, $Daten2)
{ {
$gefunden=False; $Gefunden=False;
$Diff = "\n<table border=1>\n"; $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"; $Diff .= "<tr>\n\t<th>Feldname</th>\n\t<th>old Value</th>\n\t<th>new Value</th>\n";