I am hoping to run a mysql_query where I can select a row if a certain field ends in a number. For example:
SELECT id FROM table WHERE mod(id, 10) = 1
give it a go