Commit 8942df79 authored by Nico Schallehn's avatar Nico Schallehn

kürzer

parent 0e33dafb
......@@ -80,9 +80,16 @@ class MediaDBViewerAPI{
if(isset($GET_arr['GenreID']) OR isset($GET_arr['Genre']) OR isset($GET_arr['SchauspielerID']) OR isset($GET_arr['Schauspieler']) OR isset($GET_arr['SchauspielerSuche'])){
if(isset($GET_arr['GenreID'])){
$arr = explode(",", $GET_arr['GenreID']);
foreach ($arr as $value) {
foreach (explode(",", $GET_arr['GenreID']) as $value) {
$Querys[] = 'SELECT group_concat(fg.imdbID) AS imdbIDs FROM FilmGenre AS fg JOIN Genre AS g ON fg.genreID = g.genreID WHERE g.genreID = "'.$value.'" ';
}
}
}
foreach ($Querys as $Query) {
$result = $this->DB_Objekt->query($Query);
if($this->DB_Objekt->error != ""){ return $this->error(1005, $this->DB_Objekt->error);}
$imdbIDString = $result->fetch_array();
$imdbArr[$imdbArrToCompar++] = explode(",", $imdbIDString["imdbIDs"]);
}
var_dump($Querys);
}
......
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