Commit 34c9f0e9 authored by Nico Schallehn's avatar Nico Schallehn

test4

parent 2ae97aca
......@@ -116,8 +116,9 @@ class MediaDBViewerAPI{
if(isset($GET_arr['Jahr'])){
if ((substr($GET_arr['Jahr'],0,1) == "<") OR (substr($GET_arr['Jahr'],0,1) == ">") OR !strpos($GET_arr['Jahr'], ",")) {
// Kleiner oder Größer und kein Komma!
echo "Hier bin ich".PHP_EOL;
$Where .= ($first?"":" AND ").'year ="'.$GET_arr['Jahr'].'"';
$Jahr = str_replace(">", "", $GET_arr['Jahr']);
$Jahr = str_replace("<", "", $GET_arr['Jahr']);
$Where .= ($first?"":" AND ").'year ='.((substr($GET_arr['Jahr'],0,1) == ">")?">":"").((substr($GET_arr['Jahr'],0,1) == "<")?"<":"").'"'.$Jahr.'"';
}else if(strpos($GET_arr['Jahr'], ",")>0){
$jahrArr = explode(",", $GET_arr['Jahr']);
var_dump($jahrArr);
......
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