Welcome Guest, Not a member yet? Register   Sign In
Forms and Databases (Best Practice)
#2

[eluser]Jay Logan[/eluser]
Why not put the info in the model and just call to the model when it's time to post to DB?

Code:
$newpage->id = $this->input->post('id');
$newpage->page_name = $this->input->post('page_name');
$newpage->navigation_id = $this->input->post('navigation_id');
$newpage->titlebar = $this->input->post('titlebar');
$newpage->heading = $this->input->post('heading');
$newpage->subhead = $this->input->post('subhead');
$newpage->content = $this->input->post('content');
$newpage->meta_keywords = $this->input->post('meta_keywords');
$newpage->meta_desc = $this->input->post('meta_desc');
$this->db->insert('table_name', $newpage);


Messages In This Thread
Forms and Databases (Best Practice) - by El Forum - 03-12-2009, 10:14 AM
Forms and Databases (Best Practice) - by El Forum - 03-12-2009, 08:24 PM
Forms and Databases (Best Practice) - by El Forum - 03-13-2009, 06:30 AM
Forms and Databases (Best Practice) - by El Forum - 03-13-2009, 08:50 AM
Forms and Databases (Best Practice) - by El Forum - 03-13-2009, 10:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB