Updating and creating text input with one submit.. how do I do this? |
[eluser]puffnstuff[/eluser]
- I have a loop displays multiple inputs and one submit. How do I get it so where each item that is updated gets entered in the correct field?
[eluser]michalsn[/eluser]
In model use: Code: $this->db->where('id',$id); Code: $this->db->update('skills', $data, array('id' => $id)); User guide is your friend: http://ellislab.com/codeigniter/user-gui...tml#update
[eluser]puffnstuff[/eluser]
[quote author="michalsn" date="1346309852"]In model use: Code: $this->db->where('id',$id); Code: $this->db->update('skills', $data, array('id' => $id)); User guide is your friend: http://ellislab.com/codeigniter/user-gui...tml#update[/quote] Still not updating
[eluser]puffnstuff[/eluser]
What I ended up doing was echoing the id for the name of each input. Works now. |
Welcome Guest, Not a member yet? Register Sign In |