prepare('DELETE FROM category WHERE id = :id'); $stmt->execute(['id' => $_POST['id']]); header('location: categories.php'); }