I have to three table I need to gather data from in a search process:
Commissions Table – Table1: [affiliate_id]
Affiliates Table – Table2: [id][user_id]
Profiles Table – Table3: [ID][NickName]
The search input I’ll have is someone searched for a username. I need to return the data from table 1 where the affiliate_id matches the user_id of Table2, that is like the nickname that will be searched for.
I hope that makes sense 🙂
Try this: