As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #1445020
Real-time/dynamic SQL query generate table
Closed

Comments

  • Moon started the conversation

    Hi,

    For our application, we need to build a dynamic table that is generated by real-time mysql query.  Here is our business requirement: we want user to start with a blank page with only a input box(e.g. country=???) that user can input a filter and no table is shown. After user input the filter keyword (e.g. country = U.S.A), it returns the selected record and display it in a table format(e.g. all the records whose country ==U.S.A.). 

    One of the way we are thinking about doing it is to integrate MySQL query in the input box( e.g. "SELECT * FROM user_info_table where country=?"). After user input the keyword , we will pass the full query and the MySQL database will return the result. We want to pass the result to the wpDataTable such that user will be able to view it in a table format. To achieve this, we need to dynamically change the query that generate wpDataTable. I was wondering if there is any way to do this ?

    Thanks, 

    M



  •  472
    Isidora replied

    Hi Moon,
    Thank you for your purchase.

    Yes there is solution for this with our Powerful filters add on, without using solution that you mentioned in previous post. If you have your data in database you can make table from query

    SELECT * FROM table_name

    and then you can  hide table with options that you get when you install this add on. Also you can choose which and how many column you want to filter, filtering logic(dependent or independent), including search button or not...

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables