I have a list that passes values to an sql statement to show relevant results.
I have three options (All, Option One, Option Two) and cannot get the query to work.
If I choose option one or option two then the results are fine but I cannot find a way to display all results.
The code is below:
SELECT * from details WHERE otype = '$listoption'