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 #1529542
DB Error writing update from table edit
Closed

Comments

  • SteveS99 started the conversation

    Hi Support - Firstly - Great product.......

    I have just started to use wpData Tables and built my first table using a MySQL connection to a remote DB server (on private vlan) to get data on page open.

    Data fetch and populate works like a dream.

    When I use row based edit AND in-line edit I get an error shown briefly in the web page in red saying "....Error in SQL Syntax.......". when the change is being saved.

    I have attached a screenshot of the error message.

    Can you help? as I cant find anywhere to configure a SET/UPDATE.

    The MySQL user ID has GRANT *.* DB privileges 

  •  1,896
    Miloš replied

    HI SteveS99,
    Thank you for your purchase.

    When you have some complexed queries our suggestion is to make a VIEW in phpmyadmin or any other database management system and see if the query is returning the right result. If the result is good you can use that query as an input ( SELECT * FROM View_name).

    Also please note that there are some limitations for the editable tables

    From our documentation:

    Please note these limitations on editing tables with wpDataTables.

    • Only one MySQL table can be edited at a time. Queries from multiple tables with joins cannot be used as an editable feature, since SQL UPDATE and INSERT statements are generated automatically, and there currenlty is no way to update multiple tables – but this problem is being investigated and pursued.
    • Only MySQL tables or tables created with “Create a table manually” and “Create a table by importing data from data source” options of “Create a Table” page can be edited.
    • Server-side processing MUST be turned on for front-end editing – Note: It will turn on automatically if you forget to enable it.
    • MySQL Views cannot be edited properly – only one of the underlying tables can be edited if you pass the proper ID.


    Best regards.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

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

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables