Commit 4839b43b authored by Nico Schallehn's avatar Nico Schallehn

test

parent 68fb383e
......@@ -54,7 +54,7 @@ class MediaDBViewerAPI{
return $this->error(1004);
}
else{
$entrys = $this->DB_Objekt->query("SELECT ".$this->iset($GET_arr['Spalten'], '*')." FROM ".$GET_arr['Table']." LIMIT 1;");
$entrys = $this->DB_Objekt->query("SELECT ".$this->iset($GET_arr['Spalten'], '*')." FROM ".$GET_arr['Table']." ".$this->iset($GET_arr['Order'], "", "ORDER BY")." LIMIT 30;");
echo "SELECT ".$this->iset($GET_arr['Spalten'], '*')." FROM ".$GET_arr['Table']." LIMIT 1;";
//var_dump($entrys->fetch_array());
$TitelArray = explode(",", $GET_arr['Spalten']);
......@@ -83,8 +83,8 @@ class MediaDBViewerAPI{
"Datenbank" => $this->DB_Database)
);
}
private function iset($Check, $default = null){
return (isset($Check)?$Check:$default);
private function iset($Check, $default = null,$Insertbefor = "",$Insertafter = ""){
return (isset($Check)?$Insertbefor.$Check.$Insertafter:$default);
}
function APIrespons($Laufzeit = 0, $respons = ""){
return array( "API_VERSION"=> API_VERSION,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment