Revision: 36717
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 25, 2010 08:46 by shinokada
Initial Code
function WeekStatus($id){ // getting status of page $weekinfo = array(); $weekinfo = $this->getweek($id); $status = $weekinfo['active']; if($status ==1){ $data = array('active' => 0); $this->db->update('omc_week', $data); }else{ $data = array('status' => 1); $this->db->update('omc_week', $data); } }
Initial URL
Initial Description
This is a model method to change active status. If it is 1 then change to 0 and vis verse
Initial Title
Changing Active status
Initial Tags
Initial Language
PHP