(07-22-2017, 02:20 AM)Wouter60 Wrote: Hover your mouse pointer over the button(s), and see which url appears on the status bar of your browser.
Instead of
Code:
<td>
<a class="btn btn-danger" type="button" href="<?php echo base_url(); ?>posts/delete/<?php echo $post['id']; ?>"><i class="fa fa-close"></i>delete</a>
</td>
Try this:
Code:
<td>
<?= anchor('posts/delete/' . $post['id'],'<i class="fa fa-close"></i>','class="btn btn-danger" type="button"');?>
</td>
Hi, when I hover over the button I get posts/delete/id The id number. I changed the link but it still did not work.