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

[eluser]cvandal[/eluser]
I want to use the same form to create and update content.

I've updated the form as follows:
Code:
<?=form_open('welcome/create_page', 'welcome/update_page');?>

I no longer get the "Cannot modify header information" error, but I still get the "Undefined index: title" and "Undefined index: content".

I have also added the following ID paramter:
Code:
$this->db->where('id', $this->uri->segment(3));


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