prepare("DELETE FROM hob_dir WHERE depart=? AND direction = ?"); $stm->execute([$id, $dir]); header("Location: locdetail.php?id=$id");