fehler abfangen
git-svn-id: svn://svn.cccv.de/engel-system@118 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
0006883dc9
commit
ea99c4fd4b
|
@ -45,6 +45,9 @@ if( !function_exists("db_query"))
|
|||
$Where_Start = strpos( $SQL, "WHERE");
|
||||
$Where = substr( $SQL, $Where_Start);
|
||||
|
||||
// sicherheitsprüfung !!!!
|
||||
if( $Where_Start == 0) die("<h1>DIE: kein WHERE im SQL ausdruck gefunden</h1>");
|
||||
|
||||
//Daten auslesen
|
||||
$Diff .= Ausgabe_Daten( "SELECT * FROM $Table $Where");
|
||||
|
||||
|
@ -54,6 +57,10 @@ if( !function_exists("db_query"))
|
|||
//Daten auslesen
|
||||
$Diff .= Ausgabe_Daten( "SELECT * FROM $Table $Where");
|
||||
}
|
||||
elseif( strpos( "#$SQL", "INSERT") > 0)
|
||||
{
|
||||
echo "##### LOG: INSERT #####";
|
||||
}
|
||||
else
|
||||
{
|
||||
//execute command
|
||||
|
|
Loading…
Reference in New Issue