isset($GET_arr['SchauspielerID'])ORisset($GET_arr['Schauspieler'])ORisset($GET_arr['Suche']))AND$GET_arr['Table']=="Filme"){// Filterung nur für Tablle Filme!!
isset($GET_arr['SchauspielerID'])ORisset($GET_arr['Schauspieler'])ORisset($GET_arr['Suche']))AND$GET_arr['Tabelle']=="Filme"){// Filterung nur für Tablle Filme!!
`comment` LIKE '%".$GET_arr['Suche']."%'";//OR `year` = '".$GET_arr['Suche']."' OR `resolution` LIKE '%".$GET_arr['Suche']."%'
$Suche=" `name` LIKE '%".$GET_arr['Suche']."%' OR `md5` LIKE '%".$GET_arr['Suche']."%' OR `comment` LIKE '%".$GET_arr['Suche']."%'";
//OR `year` = '".$GET_arr['Suche']."' OR `resolution` LIKE '%".$GET_arr['Suche']."%'
$Where.=(($first?"":" AND ").$Suche);
$first=false;
}
...
...
@@ -113,6 +112,8 @@ class MediaDBViewerAPI{
$Where.=(strlen($SchauspielerArr["imdbIDs"])>0?($first?"":" AND ").str_replace(",)",")",'imdbID in ('.$SchauspielerArr["imdbIDs"].')'):($first?" 0 ":""));
$first=false;
}
//TODO Hier gemeinsame Auswertunf für die imdbIDs von Genre und schauspieler!!!
}
// Überprüfen ob Schauspieler oder Genre gefordert wird
...
...
@@ -140,7 +141,7 @@ class MediaDBViewerAPI{
$Query="SELECT ".$Select.
" FROM ".$GET_arr['Table']." "
" FROM ".$GET_arr['Tabelle']." "
.$Where
.$this->iset($GET_arr['Order']," "," ORDER BY "," ")
// Genre oder Schauspielerblock hinzufügen wenn es gewünscht ist
if($ListGenre){
$Query='SELECT group_concat(g.gername) AS Genre FROM FilmGenre AS fg JOIN Genre AS g ON fg.genreID = g.genreID WHERE fg.imdbID="'.$entry["imdbID"].'" ORDER BY g.gername';