Commit 3ed3e5f3 authored by Nico Schallehn's avatar Nico Schallehn

GROUP BY installiert

parent 2e154721
......@@ -193,6 +193,12 @@ class MediaDBAPI{
$first = false;
}
}
// Sonderlösung für nur imdbID
if($GET_arr['Spalten'] == "imdbID"){
$Group = "GROUP BY imdbID";
}
// Überprüfen ob Schauspieler oder Genre gefordert wird
$SpaltenArr = explode(",", $GET_arr['Spalten']);
$ListGenre = (in_array("Genre", $SpaltenArr)?true:false);
......@@ -240,7 +246,7 @@ class MediaDBAPI{
.$Where
.$this->iset($GET_arr['Sortierung'], " ", " ORDER BY ", " ")
.$this->iset($GET_arr['Anzahl'],"", " Limit "," ")
.";";
." ".$Group.";";
$entrys = $this->query($Query);
if($this->DB_Objekt->error != ""){ return $this->error(1005, $this->DB_Objekt->error);}
......
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