i have (amongst other options) 3 checkboxes
the form result is sent to a php page which queries the database and all works fine
trying to incorporate the 0/1 options is becoming a nightmare
the table:
name | area | option1 | option2 | option3
joe | north | 1 | 0 | 0
bill | south | 0 | 1 | 1
fred | north | 1 | 1 | 0
the option are from the checkboxes
the main search is on area from a select option in the form but i need to pick up if any of the options are ticked
if someone wants north & option2 :
search.php?area=north&option2=1
if i use radio boxs or a select then the 0 values of the options get picked up ie
search.php?area=north&option1=0&option2=1&option3=0
but in my query how do i only select rows where option2=1