• Resolved jmargel74

    (@jmargel74)


    I have a shortcode in my popup, however it has to be dynamically changed (used for orders, when a user clicks on a row then a button, a pop-up will show with wpdatatables which is created by a shortcode on your popup). I have an update query to update the shortcode (code is below). however even though the table is updated, the shortcode doesn’t seem to update?

    Is the data stored anywhere else? Any advice?

    	$value = $_POST["value"];
    		$updatevariable = $value;
          
            $updatevariable = "[wpdatatable id=4 var1=" . $value . "]"; // concatenate the literal string and the variable
            $sql = "UPDATE wpdl_posts SET post_content = '$updatevariable' WHERE post_title = 'Open Order Line Items' AND post_name = 'open-order-line-items'";
    
    
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Backend Tables’ is closed to new replies.