diff options
author | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2006-08-29 12:42:35 +0000 |
---|---|---|
committer | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2006-08-29 12:42:35 +0000 |
commit | e7c842098d951ee5d43fdfac994d28ca350b1609 (patch) | |
tree | 4366a16a85110e1fb382cf625cd422495a277937 /www-ssl/inc/funktion_lang.php | |
parent | 9bdd58a89a56a4da529925e7a40958a4ec515c1b (diff) |
fehler in der Language werden jetzt ausgewertet
git-svn-id: svn://svn.cccv.de/engel-system@145 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl/inc/funktion_lang.php')
-rwxr-xr-x | www-ssl/inc/funktion_lang.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/www-ssl/inc/funktion_lang.php b/www-ssl/inc/funktion_lang.php index 1314c4ac..044da6a5 100755 --- a/www-ssl/inc/funktion_lang.php +++ b/www-ssl/inc/funktion_lang.php @@ -3,7 +3,7 @@ function Get_Text ($TextID) { - GLOBAL $con; + GLOBAL $con, $error_messages; if( !isset($_SESSION['Sprache'])) $_SESSION['Sprache'] = "EN"; @@ -14,12 +14,12 @@ function Get_Text ($TextID) $SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'"; @$Erg = mysql_query($SQL, $con); -// if(!mysql_error($con)) + if( mysql_num_rows( $Erg) == 1) return (@mysql_result($Erg, 0, "Text")); else { -// die("Error Data, '$TextID' found ". mysql_num_rows( $Erg). "x"); + array_push($error_messages, "Get_Text, '$TextID' found ". mysql_num_rows( $Erg). "x in Sprache Database Table for Language (".$_SESSION['Sprache'].")\n"); return "Error Data, '$TextID' found ". mysql_num_rows( $Erg). "x"; } @@ -27,7 +27,7 @@ function Get_Text ($TextID) function Print_Text ($TextID) { - GLOBAL $con; + GLOBAL $con, $error_messages; if( !isset($_SESSION['Sprache'])) $_SESSION['Sprache'] = "EN"; @@ -39,11 +39,11 @@ function Print_Text ($TextID) $SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'"; @$Erg = mysql_query($SQL, $con); -// if(!mysql_error($con)) if( mysql_num_rows( $Erg) == 1) echo nl2br(@mysql_result($Erg, 0, "Text")); else { + array_push($error_messages, "Get_Text, '$TextID' found ". mysql_num_rows( $Erg). "x in Sprache Database Table for Language (".$_SESSION['Sprache'].")\n"); echo "Error Data, '$TextID' found ". mysql_num_rows( $Erg). "x"; } } |