ob_start(); session_start(); include('frclsi_admn_cp/operation.php'); $operation =new operation(); if(isset($_GET['sort'])) { if($_GET['sort']=='high') $ordr='order by `unique_price` desc'; if($_GET['sort']=='low') $ordr='order by `unique_price` asc'; if($_GET['sort']=='old') $ordr='order by `id` asc'; if($_GET['sort']=='recent') $ordr='order by `id` desc'; } else { $ordr='order by `id` desc'; } if(isset($_GET['country_id'])&&$_GET['country_id']!='') { $country_id = $_GET['country_id']; $cond.= " and country_id=$country_id "; $var.= "&country_id=$country_id"; } if(isset($_GET['city'])&&$_GET['city']!='') { $city_id = $_GET['city']; $cond.= " and city_id=$city_id "; $var.= "&city=$city_id"; } if(isset($_GET['cat_id'])&&$_GET['cat_id']!='') { $cat_id = $_GET['cat_id']; $cond.= " and cat_id=$cat_id "; $var.= "&cat_id=$cat_id"; } if(isset($_GET['subcategory_id'])&&$_GET['subcategory_id']!='') { $sub_cat_id = $_GET['subcategory_id']; $cond.= " and sub_cat_id=$sub_cat_id "; $var.= "&sub_cat_id=$sub_cat_id"; } if(isset($_GET['key'])&&$_GET['key']!='') { $title = $_GET['key']; $cond.= " and title like '%$title%' "; $var.= "&key=$title"; } if(isset($_GET['brand_id'])&&$_GET['brand_id']!='') { $brand_id = $_GET['brand_id']; $cond.= " and brand=$brand_id "; $var = "&brand_id=$brand_id"; } if(isset($_GET['model_id'])&&$_GET['model_id']!='') { $model_id = $_GET['model_id']; $cond.= " and model='$model_id' "; $var = "&model_id=$model_id"; } if($_GET['l_year']!='' && $_GET['h_year']!='') { $year = $_GET['l_year']; $year1 = $_GET['h_year']; $cond.= " and year_s>$year and year_s<$year1 "; $var = "&year=$year"; } if($_GET['h_price']!='' && $_GET['h_price']!='') { $price = $_GET['l_price']; $price1 = $_GET['h_price']; $cond.= " and price>$price and price<$price1 "; $var = "&price=$price"; } if($_GET['km'] && $_GET['km']!='' && $_GET['km1'] && $_GET['km1']!='') { $km = $_GET['km']; $km1 = $_GET['km1']; $cond.= " and driven>$km and driven<$km1 "; $var = "&price=$price"; } if(isset($_GET['fuel'])&&$_GET['fuel']!='') { $fuel = $_GET['fuel']; $cond.= " and fuel='$fuel' "; $var = "&fuel=$fuel"; } if(isset($_GET['no_of_room'])&&$_GET['no_of_room']!='') { $no_of_room = $_GET['no_of_room']; $cond.= " and brand='$no_of_room' "; $var = "&no_of_room=$no_of_room"; } if(isset($_GET['no_of_room'])&&$_GET['no_of_room']!='') { $no_of_room = $_GET['no_of_room']; $cond.= " and brand='$no_of_room' "; $var = "&no_of_room=$no_of_room"; } if(isset($_GET['style'])&&$_GET['style']!='') { $style = $_GET['style']; $cond.= " and conditions='$style' "; $var = "&style=$style"; } if(isset($_GET['get_com'])&&$_GET['get_com']!='') { $get_com = $_GET['get_com']; $cond.= " and company_id=$get_com "; $var = "&get_com=$get_com"; } if(isset($_GET['vech_type'])&&$_GET['vech_type']!='') { $vech_type = $_GET['vech_type']; $cond.= " and vech_type=$vech_type "; $var = "&vech_type=$vech_type"; } //$cond.= " and status='verified' "; /*$limit=10; $page = $_GET['page']; if($page) $start = ($page - 1) * $limit; //first item to display on this page else $start = 0; $targetpage = "search_category_item.php"; $disp_page=$operation->paging('freeclassi_car_ads','','',$cond,$targetpage,$var,$limit); $ordr='order by `id` desc';*/ $cat_data=$operation->getdata('freeclassi_car_ads','*','','',$cond,$ordr,$start,$limit); ?>
Brand :
} ?>
condition :
$citydata=$operation->getdata_1('freeclassi_city','*','id',$city_id,'','','',''); ?>Location :
$contact=$operation->getdata_1('indivedual_member','*','id',$user_id,$cond,$ordr,'',''); $contact1=$operation->getdata_1('freeclassi_company','*','id',$company_id,$cond,$ordr,'',''); ?>