Please, define "didn't work".
What happens if you click on the button?
Nothing? Or does it load the requested URL and then nothing happens?
Please, insert the following line of code in the posts/delete function, right after the last this->db-> action:
PHP Code:
echo $this->db->last_query();
die();
Pls, tell us what it says.