Commit 1e50ccc7 authored by Nico Schallehn's avatar Nico Schallehn

jetzt müsste Suche nach Jahr gehen

parent 52e51a1d
...@@ -119,10 +119,12 @@ class MediaDBViewerAPI{ ...@@ -119,10 +119,12 @@ class MediaDBViewerAPI{
$Jahr = str_replace(">", "", $GET_arr['Jahr']); $Jahr = str_replace(">", "", $GET_arr['Jahr']);
$Jahr = str_replace("<", "", $Jahr); $Jahr = str_replace("<", "", $Jahr);
$Where .= ($first?"":" AND ").'year '.((substr($GET_arr['Jahr'],0,1) == ">")?">":"").((substr($GET_arr['Jahr'],0,1) == "<")?"<":"").'="'.$Jahr.'"'; $Where .= ($first?"":" AND ").'year '.((substr($GET_arr['Jahr'],0,1) == ">")?">":"").((substr($GET_arr['Jahr'],0,1) == "<")?"<":"").'="'.$Jahr.'"';
$first = false;
}else if(strpos($GET_arr['Jahr'], ",")>0){ }else if(strpos($GET_arr['Jahr'], ",")>0){
$jahrArr = explode(",", $GET_arr['Jahr']); $jahrArr = explode(",", $GET_arr['Jahr']);
var_dump($jahrArr); var_dump($jahrArr);
$Where .= ($first?"":" AND ").'year =<"'.$jahrArr[0].'"'; $Where .= ($first?"":" AND ").'year =<"'.$jahrArr[0].'"';
$first = false;
$Where .= ($first?"":" AND ").'year =<"'.$jahrArr[1].'"'; $Where .= ($first?"":" AND ").'year =<"'.$jahrArr[1].'"';
} }
......
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