using PHP and MySQL
i have grabbed an array of facebook user ids from facebook.
Now i want to find the corresponding username in my application for this array.
Clearly in my application the user table contains unique username and unique fb_uid values.
my rudimentary understanding oof programming led me to 2 ways:
1) use a loop and run through the array of fb_uid and find the username one by one.
OR
2) create a monster query like select distinct(username) from users where fb_uid = value1 OR fb_uid = value2 ...
so is there a better way out?
Thank you.