I have basically coded a code which populates a list of categories from my database then you are able to select which to delete.
I have the issue with the delete cod
The issue is that this
if(isset($_POST['delete_id'] && !empty($_POST['delete_id'])))
should be
if(isset($_POST['delete_id']) && !empty($_POST['delete_id']))