![]() |
Multiple Checkboxes Search Help ?
Hi,
I'm trying to create a new search script that would search into the DB using checkboxes. I just can't figure out how I would do that in MySQL. Here is the search page: http://www.findacupid.com/search.php This is what the "lookingfor" field data looks like: "2 3 5 6 8 9 12 15". How would I make it so it can search for a user that has only 5 and 15 in that field? Thanks for your help. |
Well if you are storing it as a string like that, I'd explode the string, and then search through it with a while() or something...
PHP Code:
I'd assume you want to compare if it was == to a value that you store in another var. |
All times are GMT. The time now is 08:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|