How create a table from MySQL, with filter options
Hi,
I want to create a table in a php page that
- links to a MySQL database that I have already created.
- has lookup fields that people can filter the information from
- is be able to return multiple results per lookup
The background: I have created a php page through which users submit survey questionnaires, which works well - users are able to submit information to my MySQL database. I am now trying to create a page that users can use to search through those results.
I want users to be able to pick from a drop down menu at the top of the page (say "Location: London") and to view all the results from the field "Location" that had the answer "London" in them.
I also want people to be able to filter by various different fields (so there would be many drop-down fields at the top of the page - for example "Location", "Type", "Model", etc - so that users can search through for either "Location = " or "Type = " or "model - ", etc, etc, etc...)
I have no idea how to do this.
Any suggestions? I can get the php page to connect to the database, and I can get it to reveal one record at a time by using bindings, but I can't filter it (it just returns the first record in the database) and it won't return multiple records.
Any help you could give would be great!
_AJ_TUS_