Commit e3e188d3 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 63f9f6e4
......@@ -57,9 +57,15 @@ class MediaDBViewerAPI{
$entrys = $this->DB_Objekt->query("SELECT ".$this->iset($GET_arr['Spalten'], '*')." FROM ".$GET_arr['Table'].";");
//echo "SELECT ".$this->iset($GET_arr['Spalten'], '*')." FROM ".$GET_arr['Table'].";";
//var_dump($entrys->fetch_array());
$entryArray = $entrys->fetch_array();
$TitelArray = explode(",", $GET_arr['Spalten']);
$i = 0;
while($entry = $entrys->fetch_array()){
foreach ($TitelArray as $Titel){
$entryArray[$i][$Titel] = $entry[$Titel];
}
}
return $entryArray;
return array("Spalten"=>$TitleArray, "Data" =>$entryArray);
}
}
public function API_serverinfo($GET_arr = ""){
......
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