Welcome Guest, Not a member yet? Register   Sign In
multiple comment delete
#1

[eluser]benfike[/eluser]
Hi!

I want to make a multiple comments delete with checkbox.

Code:
<input name="checkbox[]" type="checkbox" id="checkbox[]" value="<? echo $comm['id']; ?>">

So, if a admin mark some comment and then click on delete marked comments link, make

$this->db->set('status','inactive');
$this->db->update('hir_kommentek');
this.

What controller or model function need for this?
#2

[eluser]überfuzz[/eluser]
Lets see, so far you've got:
Code:
$this->db->set('status','inactive');
$this->db->update('hir_kommentek');
Out of the blue, are they for setting rows and updating rows..? Why don't you go completely wild and create:
Code:
$this->db->delete($array_with_id_numbers);
If you get the methods working you can use them through out your entire site.




Theme © iAndrew 2016 - Forum software by © MyBB