Changeset 2118804
- Timestamp:
- 07/07/2019 06:40:51 AM (7 years ago)
- Location:
- database-operations/trunk
- Files:
-
- 4 edited
-
admin/class-database-operations-admin.php (modified) (3 diffs)
-
admin/views/database-operations-admin-display.php (modified) (1 diff)
-
db_op.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
database-operations/trunk/admin/class-database-operations-admin.php
r2118598 r2118804 168 168 169 169 if($db_op_tb1 == "" && $db_op_tb2 == ""){ 170 $res = '<h4> Select At Least A Table</h4>';170 $res = '<h4> Select At Least A Table</h4>'; 171 171 return $res; 172 172 } … … 189 189 $qryop = 'UNION'; 190 190 } 191 $repl = str_replace('wp_', '', $db_op_tb1);192 $repl1 = str_replace('wp_', '', $db_op_tb2);191 //$repl = str_replace('wp_', '', $db_op_tb1); 192 //$repl1 = str_replace('wp_', '', $db_op_tb2); 193 193 $query = " 194 194 SELECT * 195 FROM {$ wpdb->$repl} {$qryop}195 FROM {$db_op_tb1} {$qryop} 196 196 SELECT * 197 FROM {$ wpdb->$repl1}";197 FROM {$db_op_tb2}"; 198 198 $mytables = $wpdb->get_results($query); 199 199 if (empty($mytables)) { 200 $res = ' <h4>To use this UNION clause, each SELECTED TABLE must have</br>200 $res = ' <h4>To use this UNION clause, each SELECTED TABLE must have</br> 201 201 202 202 - The same number of columns selected</br> … … 213 213 $cols = $db_op_cols; 214 214 $mytables = $mytables; 215 $res = '<div style="overflow:auto;"><table class="table table-hover" > <h4> Displaying Last Saved Query Information ofTable(s) ' . $db_op_tb1. ' / ' . $db_op_tb2.'</h4><thead class="thead-light"><tr class="table-info">';215 $res = '<div style="overflow:auto;"><table class="table table-hover" > <h4> Table(s) ' . $db_op_tb1. ' / ' . $db_op_tb2.'</h4><thead class="thead-light"><tr class="table-info">'; 216 216 if($cols != ""){ 217 217 foreach ($cols as $t) -
database-operations/trunk/admin/views/database-operations-admin-display.php
r2118598 r2118804 15 15 <div class="ms-panel-div"> 16 16 <textarea style="display:none;" id="ct_ms_content" name="ct_ms_content"><?php echo $res; ?></textarea> 17 <?php echo '<h4> Use With Shortcode [database_operations id='.17 <?php echo '<h4> Use With Shortcode [database_operations id='. 18 18 //get_post_meta(get_the_ID, "post_ID", true ); 19 19 get_the_ID().']</h4> 20 20 </br> 21 <h4> please donate www.antechncom.wordpress.com 💙 </h4></br>21 <h4> please donate www.antechncom.wordpress.com 💙 </h4></br> 22 22 '; 23 23 //get_post_custom_values('tb1', get_the_ID()) -
database-operations/trunk/db_op.php
r2118598 r2118804 4 4 Plugin URI: https://antechncom.wordpress.com/ 5 5 Description: This plugin connects Wordpress and the MY_SQL database, thus allowing a user fetch data from the MY_SQL database, a user can display a table or perform a simple 'UNION' on two tables. Copy shortcodes to use on any page. 6 Version: 1.6. 16 Version: 1.6.2 7 7 Author: Antechn 8 8 Author URI: https://antechncom.wordpress.com/about-us/ -
database-operations/trunk/readme.txt
r2118598 r2118804 5 5 Requires at least: 4.6 6 6 Tested up to: 5.2 7 Stable tag: 1.6. 17 Stable tag: 1.6.2 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later … … 66 66 * Minor Code Changes 67 67 68 = 1.6.2 = 69 * Changed Query Results Header Text 68 70 69 71 72
Note: See TracChangeset
for help on using the changeset viewer.