Commit 90dc08e0 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 02c8adf2
......@@ -58,7 +58,7 @@ class MediaDBViewerAPI{
//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);
$TitelArray = explode(",", $GET_arr['Spalten']);
/*$TitelArray = explode(",", $GET_arr['Spalten']);
$i = 0;
$entryArray = array();
while($entry = $entrys->fetch_array()){
......@@ -67,6 +67,12 @@ class MediaDBViewerAPI{
$tempArray[$Titel] = utf8_encode($entry[$Titel]);
}
array_push($entryArray,$tempArray);
}*/
$finfo = $entrys->fetch_fields();
while($entry = $entrys->fetch_array()){
foreach ($finfo as $val) {
$tempArray[$val->name] = utf8_encode($entry[$val->name]);
}
}
//var_dump($entryArray);
//echo json_encode($entryArray);
......
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