I have two tables on database user and ads when user visit the ads page I want to show him only the ads related to his country in the ads table , there is field called contry where I insert related countries like that country="Country1;Coutry2;Country3;..." and every user have a field with his country name How to select ads from ads table where the user's coutry is in the country field I guess something like that
SELECT * FROM ads WHERE $usercoutry IN ads.country
Thanks for All , I found the solution
SELECT * FROM ads WHERE coutry LIKE '%{$usercountry}%'
That Code solved the problem :)