You can use all the date related functions in MySQL.
Cf : http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
Something like this for instance :
SELECT ... FROM ... WHERE datediff (now(), last_visit) > 10;
where " last_visit' is the column of the table where you store the date of the
last visit of that person. "now()" is the current date and "10" is the number of days
you want to impose between two visits.
If there's an answer to this query, it means there have been more than the delay
otherwise access id denied (of course there must be a condition verifying that the
person is inside the database, otherwise you will deny access to people which
haven't be at least once in the area).