First check the 2 attachments.
Its a random audio calling app where user can select to talk "Both" or "Male" or "Female.
When they go search then it adds user as "Online"
3 situations of Query logic :
1. User selects "Both"
then find the users on database which genderpref is "Both" or the gender that the user is, "Male" and "Online"
2. User selects "Male"
3. User selects "Female"
Query logic with limit to last 2
simple task. bid small to get started. I dont like negotiation. I want within 1 hour. You need to give me in note++ file
Hi sir ,..... i see you put a random reference that will make problem to know any user that your function target .. i can fix it and compelete your task