/ Published in: PHP
                    
                                        This is a model method to change active status. If it is 1 then change to 0 and vis verse
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 function WeekStatus($id){ // getting status of page $weekinfo = $this->getweek($id); $status = $weekinfo['active']; if($status ==1){ $this->db->update('omc_week', $data); }else{ $this->db->update('omc_week', $data); } }
Comments
                    Subscribe to comments
                
                