Welcome Guest, Not a member yet? Register   Sign In
Saving data to the database after form validation - best practices?
#1

[eluser]mddd[/eluser]
Suppose you have used the form_validation class to check your POST data. Everything is okay, prepped and checked.

Now you want to save it to the database. What's the cleanest way to do so? I could write a series of $this->db->set('name', set_value()) statements. But I have the feeling there should be a nicer way.

Anybody who wants to give their opinion or experience with this? I've used the form_validation library before but this is the stage that always has me thinking 'there should be a better way'. Perhaps making use of the information you already passed to the validation library.


Messages In This Thread
Saving data to the database after form validation - best practices? - by El Forum - 08-19-2010, 09:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB