You must use the "set" method to update an entry. |
[eluser]Unknown[/eluser]
A Database Error Occurred You must use the "set" method to update an entry. I can't understand what the problem. I was doing everything like the tutorial sad. Code: function comment_insert()
[eluser]mi6crazyheart[/eluser]
What u r wanted to do ? insert any new record or update any existing record... ?
[eluser]Unknown[/eluser]
Insert a new record. When I trying insert a new comment in blog, i get this error
[eluser]mi6crazyheart[/eluser]
If u want to insert a new record, i hope u'r doing this in u'r model function then u'r MODEL function should be like this.. Code: $this->db->set('commentContent', $this->session->userdata('comment')); //commentContent is DB table field name Ref: http://ellislab.com/codeigniter/user-gui...tml#insert |
Welcome Guest, Not a member yet? Register Sign In |