<a href="?id=<?php echo $row['ID']; ?>" <--- la querystring id è piccola pertanto $_GET["id"]
if(isset($_GET['id'])){
$ID=$_GET['id'];....