I would suggest that you keep a "next number" variable somewhere where you can control how it is updated and changed. That way you can control your "holes". Michael Lewis -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php