prepare("DELETE FROM bugs WHERE id=:bug_id"); $query->bindParam(':bug_id', $_GET['id']); if($query->execute()) { echo "

bug deleted

"; } else { echo "

bug failed to delete

"; } redirect: header("Refresh: 2; URL=$_SERVER[HTTP_REFERER]"); footer: require_once(TEMPLATES_PATH . "/footer.php"); ?>