load->view('front/includes/header'); ?> session->userdata('primaryid'); $userrole=$this->session->userdata('userrole'); $loggedname=$this->session->userdata('loggedname'); $tables="users"; $wheres=array("id"=>$primaryid); $shows=("*"); $userdets=$this->commonsql_model->selectTable($tables,$wheres,$shows); if($userdets->num_rows()>0) { $u=$userdets->row(); $loggedusername=$u->name; } $tables="wishlist"; $wheres=array("user_id"=>$primaryid,"status"=>1); $shows=("*"); $userdet=$this->commonsql_model->selectTable($tables,$wheres,$shows); ?>

User Profile

Hi , Welcome to policybot
load->view('front/includes/leftmenu'); ?>

Favourites

num_rows()>0) { foreach($userdet->result() as $pd) { $wid=$pd->id; $policy_id=$pd->policy_id; $tables="policies"; $wheres=array("id"=>$policy_id); $shows=("*"); $img=$this->commonsql_model->selectTable($tables,$wheres,$shows); if($img->num_rows()>0){ $i=$img->row(); $name=$i->name; $policyimg=$i->image; } ?>
load->view('front/includes/footer'); ?>