Hi Dagon,
I'll try to explain better and see if this makes sense. 🙂
Simplified example.
The DB has stored an amount (the price) and the type of sale (e.g drink OR food).
On this page, the user selects using a checkbox which type of sale they want to display. Either, drink, food, other, both or whatever combination they need.
After the form is submitted the piece of code in question comes into play.
If they've checked an option it appears in the $GET array & it knows to print that row from the DB. If they haven't it knows to ignore that option from the DB.
So the query string will look something like
.php?food=on&drink=on
There is no $_GET['exptype'] as there is no exptype= in the querystring.
I may well be approaching this all backwards. I do have a tendency to do that as a self taught amateur coder.
All advice is appreciated. Thank you.