Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MediaDBViewerAPI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BA_SI-Projekt
MediaDBViewerAPI
Commits
1f7ad405
Commit
1f7ad405
authored
Jan 19, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Count(e.name)
parent
bbd3d70f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
api.class.php
api.class.php
+2
-2
No files found.
api.class.php
View file @
1f7ad405
...
...
@@ -259,7 +259,7 @@ class MediaDBViewerAPI{
}
if
(
$Statistik
==
true
)
{
if
((
$GET_arr
[
'Tabelle'
]
==
"Staffeln"
))
{
$Query
=
'SELECT avg(e.checked) AS Checked, avg(e.views) AS Views, SUM(e.size) AS Size, SUM(e.duration) AS Duration, COUNT(e.
*
) AS Count '
.
$Query
=
'SELECT avg(e.checked) AS Checked, avg(e.views) AS Views, SUM(e.size) AS Size, SUM(e.duration) AS Duration, COUNT(e.
name
) AS Count '
.
'FROM Staffeln AS s JOIN Episoden AS e ON s.season_nr = e.season_nr '
.
'WHERE s.season_nr = '
.
$entry
[
"season_nr"
];
$result
=
$this
->
query
(
$Query
);
...
...
@@ -271,7 +271,7 @@ class MediaDBViewerAPI{
$tempArray
[
"Duration"
]
=
$resultArr
[
"Duration"
];
$tempArray
[
"Count"
]
=
$resultArr
[
"Count"
];
}
else
if
((
$GET_arr
[
'Tabelle'
]
==
"Serien"
)){
$Query
=
'SELECT avg(e.checked) AS Checked, avg(e.views) AS Views, SUM(e.size) AS Size, SUM(e.duration) AS Duration, COUNT(e.
*
) AS Count '
.
$Query
=
'SELECT avg(e.checked) AS Checked, 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"
];
$result
=
$this
->
query
(
$Query
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment