$SQL="SELECT * FROM $tbl WHERE ID = '$ID' AND expireddate!=''";