Welcome Guest, Not a member yet? Register   Sign In
Having trouble updating my database with CodeIgniter
#2

[eluser]Thorpe Obazee[/eluser]
You are submitting to 'welcome/create_page' on your form.

The controller method you are showing us is 'update_page'.

The Controller:
Code:
function update_page()
    {
        $data = array(
            'title' => $_POST['title'],
            'content' => $_POST['content']
        );
        $this->welcome_model->update_entry($data);
        redirect('');
    }
The View:
Code:
<?=form_open('welcome/create_page');?>


Messages In This Thread
Having trouble updating my database with CodeIgniter - by El Forum - 09-10-2009, 09:00 PM
Having trouble updating my database with CodeIgniter - by El Forum - 09-10-2009, 09:26 PM
Having trouble updating my database with CodeIgniter - by El Forum - 09-10-2009, 09:28 PM
Having trouble updating my database with CodeIgniter - by El Forum - 09-10-2009, 10:06 PM
Having trouble updating my database with CodeIgniter - by El Forum - 09-10-2009, 10:40 PM
Having trouble updating my database with CodeIgniter - by El Forum - 09-10-2009, 11:54 PM
Having trouble updating my database with CodeIgniter - by El Forum - 09-10-2009, 11:58 PM
Having trouble updating my database with CodeIgniter - by El Forum - 09-11-2009, 12:27 AM
Having trouble updating my database with CodeIgniter - by El Forum - 09-11-2009, 01:47 AM
Having trouble updating my database with CodeIgniter - by El Forum - 09-11-2009, 07:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB