hi all~ i have searched everywhere for a problem that i am trying to solve and the best i could get was from mysql manual's example, which i couldnt get it to work in my situation.
so i hope that some experts here can give me some light... the problem is this, i have a page that has checkboxes of interests, and i am trying to search against a mysql set datatype.
on my page there is a list of checkboxes that can be checked multiply, and the data is passed via POST as array.
i have no problem manipulating around with this array with implode or explode...
but how do i match it against mysql's set, and display a list of data ranging from best matched interests and least matched interests with sql query?
mysql's manual suggested using bit... but in its example it's comparing a real row data with other rows, whileas the data i have is "on the fly"...
if i insert a temp row into the db and use it to match against others i will have to lock the table (so other people cant change it) and delete the temp row after the query... which is rather troublesome...
is there other ways around it? maybe doing it all within php without the help of sql?
please help~ thanks~ :queasy: