if($search) { if(!empty($_REQUEST['tag'])){ $tmpsearch->isTag = true; } $from_where .= $search; $title = htmlspecialchars($_REQUEST['search']); }