?> </h3> <table> <tr> <td style="width: 250px"> <label for="wpdatatables_mysql_tables"><span><?php _e('Choose the tables that should provide the data to your table', 'wpdatatables'); ?> </span></label> </td> <td> <div class="uploader"> <select id="wpdatatables_mysql_tables" multiple="true"> <?php foreach (wpDataTableConstructor::listMySQLTables() as $mysql_table) { ?> <option value="<?php echo $mysql_table; ?> "><?php echo $mysql_table; ?> </option> <?php } ?> </select> </div> </td>
/** * Delete a column from a manually created table */ function wpdatatables_delete_manual_column() { $table_id = filter_var($_POST['table_id'], FILTER_SANITIZE_NUMBER_INT); $column_name = filter_var($_POST['column_name'], FILTER_SANITIZE_STRING); wpDataTableConstructor::deleteManualColumn($table_id, $column_name); exit; }