Such a cat definitely requires optimization. CodeIgniter 1/7/2
$i1['category'] = $this->input->post('category'); $i1['title'] = $this->input->post('title'); $i1['fncmat'] = $this->input->post('fncmat'); $i1['fnccat'] = $this->input->post('fnccat'); $i1['description'] = $this->input->post('description'); $i1['twitter'] = $this->input->post('twitter'); $i1['rss'] = $this->input->post('rss'); $i1['sitemap'] = $this->input->post('sitemap'); $i1['control_image'] = $this->input->post('control_image'); $i1['control_comments_list'] = $this->input->post('control_comments_list'); $i1['control_twitter'] = $this->input->post('control_twitter'); $i1['control_public'] = $this->input->post('control_public'); $i1['control_aggregators'] = $this->input->post('control_aggregators'); $i1['control_notify'] = $this->input->post('control_notify'); $i1['control_comments_allow'] = $this->input->post('control_comments_allow'); $i1['control_mailer'] = $this->input->post('control_mailer'); The array $ i1 will update the fields in the database