Commit 6de76699 authored by Nico Schallehn's avatar Nico Schallehn

test

parent f30e7861
......@@ -97,7 +97,7 @@ class MediaDBViewerAPI{
$entrys = $this->DB_Objekt->query($Query);
if(isset($this->DB_Objekt->error)){ return $this->error(1005, $this->DB_Objekt->error);}
//if(isset($this->DB_Objekt->error)){ return $this->error(1005, $this->DB_Objekt->error);}
//echo "SELECT ".$this->iset($GET_arr['Spalten'], '*')." FROM ".$GET_arr['Table']." ".$this->iset($GET_arr['Order'], " ", "ORDER BY ", " ").$this->iset($GET_arr['Limit'],"", " Limit "," ").";";
//var_dump($entrys->fetch_array());
//var_dump($GET_arr);
......@@ -120,7 +120,7 @@ class MediaDBViewerAPI{
$Query = 'SELECT group_concat(g.engname) AS Genre FROM FilmGenre AS fg JOIN Genre AS g ON fg.genreID = g.genreID WHERE fg.imdbID="'.$tempArray["imdbID"].'" ';
$Genre = $this->DB_Objekt->query($Query);
if(isset($this->DB_Objekt->error)){ return $this->error(1005, $this->DB_Objekt->error);}
//if(isset($this->DB_Objekt->error)){ return $this->error(1005, $this->DB_Objekt->error);}
$GenreArr = $Genre->fetch_array();
$tempArray["Genre"] = explode(",", $GenreArr["Genre"]);
......@@ -130,7 +130,7 @@ class MediaDBViewerAPI{
$Query = 'SELECT group_concat(s.name) AS Schauspieler F ROM FilmSchauspieler AS fs JOIN Schauspieler AS s ON fs.schauspielerID = s.schauspielerID WHERE fs.imdbID="'.$tempArray["imdbID"].'" ';
$Schauspieler = $this->DB_Objekt->query($Query);
if(isset($this->DB_Objekt->error)){ return $this->error(1005, $this->DB_Objekt->error);}
//if(isset($this->DB_Objekt->error)){ return $this->error(1005, $this->DB_Objekt->error);}
$SchauspielerArr = $Schauspieler->fetch_array();
var_dump($Schauspieler);
//$tempArray["Schauspieler"] = explode(",", $GenreArr["Schauspieler"]);
......
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