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 #3808485
Table update on button
Closed

Comments

  • Jose M Barbosa started the conversation

    Hi,

    I am trying to create a button on a page where the plugin wpdatatables is working, showing th table contents. When the button is pressed I want to do something similar to this codeĀ 

    <?php
    global $wpdb;
    $sql="UPDATE alarms SET status='ACK' WHERE status='ON'";
    $result = $wpdb->query($sql);

    ?>

    The table alarms is the one being displayed, and is a remote table

    I created a shortcode using "PHP CodeSnipets" plugin and included the shortcode on a button, but nothing happens.

    can you give me some direction?

    Thank you