Welcome Guest, Not a member yet? Register   Sign In
Setting
#5

(This post was last modified: 09-13-2016, 09:38 PM by wolfgang1983.)

PHP Code:
public function update_settings($id) {     
    $data 
= array(
        'email' => $this->input->post('email'),
        'site_name' => $this->input->post('sitename'),
        'meta_title' => $this->input->post('title'),
        'meta_keyword' => $this->input->post('keyword'),
        'meta_description' => $this->input->post('description'),
        'facebook' => $this->input->post('facebook'),
        'twitter' => $this->input->post('twitter'),
        'rss' => $this->input->post('rss')            
    
);
        
   $this
->db->where('id'$id); // could be users login id what ever you need     
   $this->db->update('setting'$data);    



Then use a separate model function to get the data
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
Setting - by davy_yg - 09-12-2016, 11:24 PM
RE: Setting - by davy_yg - 09-13-2016, 02:37 AM
RE: Setting - by ciadmin - 09-13-2016, 06:32 AM
RE: Setting - by davy_yg - 09-13-2016, 06:52 AM
RE: Setting - by wolfgang1983 - 09-13-2016, 09:05 PM
RE: Setting - by salain - 09-13-2016, 10:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB