Ok here is my dilemma...
I have two databases which I need to access during a search.
The first database "gallery" keeps the users information, name, city, etc.
The second is their submissions in the gallery.
Each submission holds a $keyid which corresponds to there user id held in the "gallery" db.
I need to access both dB's if a user decides to search for a username, now this is quite complicated because if someone decides to search for say "sky" and 4 users have "sky" in their name it has to grab all of those submissions for each user as well.
Any help on this would be appreciated.