Welcome Guest, Not a member yet? Register   Sign In
Simple insert query from a form
#1

[eluser]Unknown[/eluser]
Hi everyone, I'm pretty new with codeIgniter and is pretty funny Smile

At the moment I'm stuck with a problem (maybe a concept problem).

I understood how to "take" data from a database with a model, pass it to the controller and then put in the view. Pretty easy.

Now I would know how can I insert a new record in the database (example: a new user). Can I use in someway the function I create in the model?

Hope you got my question Smile

P.s: sorry for my bad english ^^
#2

[eluser]xtremer360[/eluser]
Well you can form the data for the user into an array and then user CI's active record insert method to send the data to the model from the controller.




Theme © iAndrew 2016 - Forum software by © MyBB