ob_start(); session_start(); include('frclsi_admn_cp/operation.php'); $operation =new operation(); if($_REQUEST['unsub']=='Unsubscribe') { extract($_POST); $unsubscribe_data=$operation->getdata_1('freeclassi_member_fav','*','',''," my_fav_col1='$country_id' and my_fav_col2='$city' and my_fav_col3='$cat_id' and my_fav_col4='$subcategory_id' and my_fav_col5='$get_com' and my_fav_col6='$brand_id' and my_fav_col7='$model_id' and my_fav_col8='$key' and years_from='$l_year' and years_to='$h_year' and price_from='$l_price' and price_to='$h_price' and member_id='$email' ",$ordr,$start,$limit); $add_news=$operation->edit_member_fav($_POST,$unsubscribe_data['id']); if($add_news) { $msg=" Your Subscription Delete Link Has Been Sent To Your Email "; } else { $msg="Sorry.Cannot Added Your Favourite.Try Again."; } header('location:member_fav.php?msg='.$msg); } if($_REQUEST['submit']=='Save') { $add_news=$operation->add_member_fav($_POST,$_FILES); if($add_news) { $msg=" Your Favourite Added Successfully"; } else { $msg="Sorry.Cannot Added Your Favourite.Try Again."; } header('location:member_fav.php?msg='.$msg); } $ordr='order by `id` desc'; if($_SESSION['FBID']) { $fb_id=$_SESSION['FBID']; $mem_data=$operation->getdata_1('indivedual_member','*','',''," fb_id='$fb_id' ",$ordr,$start,$limit); extract($mem_data); } if($_SESSION['member_id']) { $mem_data=$operation->getdata_1('indivedual_member','*','id',$_SESSION['member_id'],$cond,$ordr,$start,$limit); extract($mem_data); } ?>