get_hybridauth_user($user); //retrieve start and end date for subscription $list=$data->get_user_order('subscription'); if(isset($list)) { foreach($list as $row) { list($name,$start_period,$end_period)=$row; $start_period_display=strtotime($start_period); $end_period_display=strtotime($end_period); //to retreive all month from the start and end date $sub_issue=$data->get_subscription_issue($start_period,$end_period); foreach($sub_issue as $row) { $list1[]=$row; $b=array_search('december2013',$list1); } } } //array search to check this issue in user db $user=$_SESSION['user']; // check user purchased this issue $productid=2; $get_data= new access(); $counts=$get_data->get_users_username($user); $pro_count=$get_data->get_product($productid); $dup_order=$get_data->check_order(); // check condition to read issue // check product purchased and then subscription purchased if($counts==1 && $pro_count==1 && $dup_order==1 || isset($b)) { ?> january2015
Get Adobe Flash player
store"; } } else { echo "Please Login to read this Issue."; } ?>