my model does not work as expected |
Hi, I have a users table in the database the problem is when I want to update a selected row in the table using save or update function it does not update.
I don't know why but I'm sure that the code is fine. Below is the function that updates the selected row. PHP Code: public function edit_profile() PHP Code: <?php
Your password field is required but you're not setting a password when you call the save method. If you print the model errors after the save method you'll be able to see that.
Website: marcomonteiro.net | Blog: blog.marcomonteiro.net | Twitter: @marcogmonteiro | TILThings: tilthings.com
You can also use this:
http://codeigniter.com/user_guide/models...ing-fields For updating data this works perfectly, too. |
Welcome Guest, Not a member yet? Register Sign In |