You can have a certain number of tries based on the number of values in the database:
$dbnumber=66; #This would be the number of usernames.
#Your input line would go here, obviously not print value.
} until($value==$dbnum); #This makes it stop after checking the last value in the database.
in reply to Re: do until loops
in thread do until loops