Once again, thanks David. That makes more sense than the stuff I was trying to do. I'm having problems though.

This is in a section that's not open to the public, so it doesn't really matter if the addresses are in there, but I'm doing it your way anyway.

Anyway, the problem is that the loop seems to find false for every entry in the database. I had it echo somethng if the if statement failed, and I got one for every entry. I think I have my variables mixed up somewhere.
_________________________
Matt