I don’t think it would be a good idea to allow people to enter sql queries directly on your data. If you are using taxonomies for price, taste etc, you should be able to return items with a combinations of values for these using a plugin to provide faceted search such as facetious: http://wordpress.org/plugins/facetious/ or one of a number of alternatives: http://wordpress.org/plugins/search.php?q=faceted
Thread Starter
Adevy
(@adevy)
Thank you very much for your answer.
I understand what you say but I don’t understand how i Can, fisrtly, display a table in order to show results of the database ?
Even if visitors can’t touch the sql database, how can them see it ?
Adding a table for this is not the recommended way to do it in WordPress.
Using a custom post type would probably be appropriate then each fruit would be added like a post, but in the ‘fruit’ custom post type.
http://codex.wordpress.org/Post_Types#Custom_Post_Types
Thread Starter
Adevy
(@adevy)
I have already created the custom post type (called book) and custom fields (Mark for price, quality,…), thanks to you. But I don’t know visitor’s answers can change automatically the custom fields of the good book.
For example, I want to mark the book number 14, with a 6/10 for price and a 9/10 for quality. Is there a plug in to change the average? (If I have to write the formula, it’s better).
I have downloaded ninja forms to collect answers.
In a second step, I didn’t find any plug in wich can display automatically all of the custom post type. (Of course, I don’t want to add every book one by one.
After I will use taxonomy to filter.
Thank you again!!