Commit 2385f1aa authored by Nico Schallehn's avatar Nico Schallehn

suche angepasst

parent 4970f335
...@@ -70,11 +70,11 @@ class MediaDBViewerAPI{ ...@@ -70,11 +70,11 @@ class MediaDBViewerAPI{
$first = false; $first = false;
} }
if(isset($GET_arr['Suche'])){ if(isset($GET_arr['Suche'])){
$Suche = " `name` LIKE '".$GET_arr['Suche']."' OR $Suche = " `name` LIKE '%".$GET_arr['Suche']."%' OR
`year` = '".$GET_arr['Suche']."' OR `year` = '".$GET_arr['Suche']."' OR
`md5` LIKE '".$GET_arr['Suche']."' OR `md5` LIKE '%".$GET_arr['Suche']."%' OR
`resolution` LIKE '".$GET_arr['Suche']."' OR `resolution` LIKE '%".$GET_arr['Suche']."%' OR
`comment` LIKE '".$GET_arr['Suche']."'"; `comment` LIKE '%".$GET_arr['Suche']."%'";
$Where .= (($first?"":" AND ").$Suche); $Where .= (($first?"":" AND ").$Suche);
$first = false; $first = false;
} }
......
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