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
0e33dafb
Commit
0e33dafb
authored
Jan 14, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Syntax Fehler behoben
parent
0c42815f
Changes
1
Show 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 @
0e33dafb
...
@@ -81,7 +81,7 @@ class MediaDBViewerAPI{
...
@@ -81,7 +81,7 @@ class MediaDBViewerAPI{
if
(
isset
(
$GET_arr
[
'GenreID'
])){
if
(
isset
(
$GET_arr
[
'GenreID'
])){
$arr
=
explode
(
","
,
$GET_arr
[
'GenreID'
]);
$arr
=
explode
(
","
,
$GET_arr
[
'GenreID'
]);
foreach
(
$arr
as
$value
)
{
foreach
(
$arr
as
$value
)
{
$Querys
[]
=
'SELECT group_concat(fg.imdbID) AS imdbIDs FROM FilmGenre AS fg JOIN Genre AS g ON fg.genreID = g.genreID WHERE g.genreID
IN ('
.
$value
.
')
'
;
$Querys
[]
=
'SELECT group_concat(fg.imdbID) AS imdbIDs FROM FilmGenre AS fg JOIN Genre AS g ON fg.genreID = g.genreID WHERE g.genreID
= "'
.
$value
.
'"
'
;
}
}
}
}
var_dump
(
$Querys
);
var_dump
(
$Querys
);
...
@@ -151,7 +151,7 @@ class MediaDBViewerAPI{
...
@@ -151,7 +151,7 @@ class MediaDBViewerAPI{
break
;
break
;
case
2
:
$imdbStr
.=
implode
(
","
,
array_intersect
(
$imdbArr
[
0
],
$imdbArr
[
1
]));
case
2
:
$imdbStr
.=
implode
(
","
,
array_intersect
(
$imdbArr
[
0
],
$imdbArr
[
1
]));
break
;
break
;
case
3
:
$imdbStr
.=
implode
(
","
,
array_intersect
(
$imdbArr
[
0
],
$imdbArr
[
1
],
,
$imdbArr
[
3
]));
case
3
:
$imdbStr
.=
implode
(
","
,
array_intersect
(
$imdbArr
[
0
],
$imdbArr
[
1
],
$imdbArr
[
2
]));
break
;
break
;
...
...
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