if($_POST["is_date_search"] == "yes") { $query .= 'tarih_yilaygun BETWEEN "'.$_POST["start_date"].'" AND "'.$_POST["end_date"].'" AND '; }
if(isset($_POST["search"]["value"])) { $query .= ' (id LIKE "%'.$_POST["search"]["value"].'%" OR sehirler LIKE "%'.$_POST["search"]["value"].'%" OR eposta LIKE "%'.$_POST["search"]["value"].'%" OR tarih_yilaygun LIKE "%'.$_POST["search"]["value"].'%") '; }
if(isset($_POST["order"])) { $query .= 'ORDER BY '.$columns[$_POST['order']['0']['column']].' '.$_POST['order']['0']['dir'].' '; } else { $query .= 'ORDER BY id DESC '; }