Simple insert query from a form - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Simple insert query from a form (/showthread.php?tid=59257) |
Simple insert query from a form - El Forum - 09-11-2013 [eluser]Unknown[/eluser] Hi everyone, I'm pretty new with codeIgniter and is pretty funny 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 P.s: sorry for my bad english ^^ Simple insert query from a form - El Forum - 09-11-2013 [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. |