I have two tables members and ads, members table has auto_increment 'ID' , 'CREDIT' and some members information.
ads table has 'AID' auto_increment and 'ID' to track who's link is that
Basically 1 member can have up to 5 link ads.
I want to get from query LIMIT 5 ads who has enough credits...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.