I have a MySql table (meat) storing the results data of on online culinary exam. One of the fields in the record is "optype". It is a drop down select field with about 12 choices.
I have a separate results page, and when a user goes to that URL the results are displayed automatically. I am currently displaying the results of the MySql table (meat) using the following query:: $query = "SELECT * FROM meat WHERE optype='Country_Club'ORDER BY time DESC";
What I would like to do is let the user decide, from a drop down menu, the various options that are available for optype. Country_Club is just of the 12 choices, others being Hotel, Educational_Facility, etc.
What I am after is a way to allow one user to display the results using the query$query = "SELECT FROM meat WHERE optype='Country_Club'ORDER BY time DESC"; and another user to display the results using the query $query = "SELECT FROM meat WHERE optype='Hotel'ORDER BY time DESC"; .... and so on
Can anyone lend me some help?
Regards,
Chef Mars