I have a written some code that searches through a database. It's results are based on a series of checkboxes. Yes/No kind of stuff.
I have realized that I do not want the unchecked position to represent a "no" answer. Instead I want it to ignore that value in the search of the database.
I currently have a really basic
mysql_query("SELECT * FROM secondary_tbl WHERE program='$program1' AND program2='$program2'"
any suggestions (or links to a thread on this topic) on how to code it so that an unchecked box ignores that particular field instead of registering an automatic "no"