I'm currently building pages after extracting an ID number from the database. So for example:
$SQL="SELECT * FROM $tbl WHERE ID = '$ID' AND expireddate!=''";
What I need to do however, is build an HTML page for every ID number that is not in the database. We are up to about 10,000 IDs now (we started at zero) but a lot of those IDs have been deleted from the database. I'm not sure how to build a page for every number, starting at 1, that does not already have an ID in the database.