Welcome Guest, Not a member yet? Register   Sign In
Inserting with arrays > A Better Way?
#3

[eluser]danfloun[/eluser]
Hi, thanks for that, though I'm not sure I explained clearly enough.

After I click the submit button on the form, all the form field data is stored in $_POST is it not!
So I'm wondering if CI has a built in function so rather than have to create a model like above, you simply use a function like,

Model:
Code:
function Update()
   {
         $this->db->update('db_table', $_POST');
   }

and thats all you would need! It would make sense to me, although I'm probably missing something here...

Danny


Messages In This Thread
Inserting with arrays > A Better Way? - by El Forum - 08-12-2007, 04:44 PM
Inserting with arrays > A Better Way? - by El Forum - 08-12-2007, 04:53 PM
Inserting with arrays > A Better Way? - by El Forum - 08-12-2007, 05:15 PM
Inserting with arrays > A Better Way? - by El Forum - 08-12-2007, 05:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB