I think you may need to write a function that does 3 things: 1) select the records you want to delete; 2) archive these in a new table; 3) delete records from original table. I did not test this, so beware, but this should get you started. Let me know if I'm all wet. Once you do this, then all you have to do is ("SELECT * FROM archive WHERE whatever"); to list your deletions. Don't worry about ID#s, eh?
function archive_and_delete() {
mysql_connect("$Host","$User","$Pass") or die ("The database server is temporarily down for maintenance");
// select rows for deletion based on the variable '$address'
$result=mysql("$Name","SELECT entry_time FROM your_table WHERE address='$address'");
while ($row = mysql_fetch_row($result)) {
$tim=$row[0];
}
// put selected records into table named 'archive' before deleting
$result=mysql("$Name","INSERT '$tim' INTO archive WHERE address='$address'");
// now delete the original selection from 'your_table'
$result=mysql("$Name","DELETE '$tim' FROM your_table WHERE address='$address'");
}