|
|
@ -44,6 +44,9 @@ if( !function_exists("db_query"))
|
|
|
|
//WHERE ermitteln
|
|
|
|
//WHERE ermitteln
|
|
|
|
$Where_Start = strpos( $SQL, "WHERE");
|
|
|
|
$Where_Start = strpos( $SQL, "WHERE");
|
|
|
|
$Where = substr( $SQL, $Where_Start);
|
|
|
|
$Where = substr( $SQL, $Where_Start);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// sicherheitsprüfung !!!!
|
|
|
|
|
|
|
|
if( $Where_Start == 0) die("<h1>DIE: kein WHERE im SQL ausdruck gefunden</h1>");
|
|
|
|
|
|
|
|
|
|
|
|
//Daten auslesen
|
|
|
|
//Daten auslesen
|
|
|
|
$Diff .= Ausgabe_Daten( "SELECT * FROM $Table $Where");
|
|
|
|
$Diff .= Ausgabe_Daten( "SELECT * FROM $Table $Where");
|
|
|
@ -54,6 +57,10 @@ if( !function_exists("db_query"))
|
|
|
|
//Daten auslesen
|
|
|
|
//Daten auslesen
|
|
|
|
$Diff .= Ausgabe_Daten( "SELECT * FROM $Table $Where");
|
|
|
|
$Diff .= Ausgabe_Daten( "SELECT * FROM $Table $Where");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
elseif( strpos( "#$SQL", "INSERT") > 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
echo "##### LOG: INSERT #####";
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//execute command
|
|
|
|
//execute command
|
|
|
|