Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Ok, I've a sign up form that has some checkbox. Each check box has one style of music (like pop, rock, dance, techno, etc) and the user has to choose the styles that he likes most.
Ok, then I get all the data (name, city, country and music style) and put it into a DB
In DB, the result appears like "1, 3, 4" for example... in this example the value 1 = rock, 3 = pop, 4 = techno
But I wanna make a search form... in this search form, the user can choose to search for people that likes the same music style.. for example the user wants to search for people who likes rock and techo (1,4)
How would be the SQL string for this ??
I hope someone can help me...
0 · ·