ob_start(); session_start(); include('frclsi_admn_cp/operation.php'); $operation =new operation(); if(isset($_GET['country_id'])&&$_GET['country_id']!='') { $country_id = $_GET['country_id']; $cond.= " and country='$country_id' "; $var = "&country='$country_id' "; } if(isset($_GET['city'])&&$_GET['city']!='') { $city = $_GET['city']; $cond.= " and city_id='$city' "; $var = "&city_id='$city_id' "; } if(isset($_GET['cat_id'])&&$_GET['cat_id']!='') { $cat_id = $_GET['cat_id']; $cond.= " and company_cat='$cat_id' "; $var = "&cat_id='$cat_id' "; } if(isset($_GET['subcategory_id'])&&$_GET['subcategory_id']!='') { $subcategory_id = $_GET['subcategory_id']; $cond.= " and company_type='$subcategory_id' "; $var = "&subcategory_id='$subcategory_id' "; } if(isset($_GET['company'])&&$_GET['company']!='') { $company = $_GET['company']; $com_data_for_compny_subcategory=$operation->getdata_1('freeclassi_subcategory','*','',''," sub_category like '%$company%' ",'',$start,$limit); $sub_cat_name=$com_data_for_compny_subcategory['id']; $cond.= " and company_name like '%$company%' "; $var = "&company_name=$company"; } $com_data_for_compny=$operation->getdata('freeclassi_company','*','','',$cond,'',$start,$limit); if($_GET['country_id']) { $cntry_name=$operation->getdata_1('freeclassi_country','*','id',$_GET['country_id'],'','','',''); $_SESSION['country']=$cntry_name['country']; } ?>