[eluser]benfike[/eluser]
Hi!
I have an admin page, where admins can delete comments, but I want to do it with checkbox for where is checkbox active that comments will be deleted..
Code:
<input name="checkbox[]" type="checkbox" id="checkbox[]" value="<? echo $comm['id']; ?>">
How can I post (where is checkbox active comment ID) this to controller or?
The delete only set the comments inactive, not delete out of database.
Code:
$this->db->set('status','inactive');
$this->db->update('hir_kommentek');