Okay
  Public Ticket #3808485
Table update on button
Open

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