Commit c0165db7 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 0787fade
......@@ -421,6 +421,7 @@ class MediaDBAPI{
//JETZT
var_dump( $this->SpaltenEpi);
echo in_array("checked", $this->SpaltenEpi).PHP_EOL;
$Query = 'SELECT '.(in_array("checked", $this->SpaltenEpi)?'avg(e.checked) AS Checked,':'').' '.(in_array("views", $this->SpaltenEpi)?'avg(e.views) AS Views,':'').' SUM(e.size) AS Size, SUM(e.duration) AS Duration, COUNT(e.name) AS Count '.
'FROM Serien AS se JOIN Staffeln AS st ON se.series_nr=st.series_nr JOIN Episoden AS e ON st.season_nr = e.season_nr '.
'WHERE se.series_nr = '.$entry["series_nr"];
......
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