Forums

[GWA] db Editor
db Editor] GWA db editor for other databases (3 posts)

  1. bkneppers
    Member
    Posted 1 year ago #

    This plugin works great, works well right out of the box, and is simple in use.

    I have a separate database on my server that I would like to edit in the same way (not the WordPress database), as this is much easier to use than myphpadmin. Would it be possible for me to edit the plugin to edit that database instead of the WordPress database itself? How would I achieve this?

    Any help would be greatly appreciated.

    http://wordpress.org/extend/plugins/gwa-db-editor/

  2. pomspot
    Member
    Posted 11 months ago #

    The plugin uses $wpdb which is using the blog database. It would need to be updated significantly to access externals.

  3. mahira
    Member
    Posted 10 months ago #

    Hi pomspot, I have replaced lines 54 and 55 with the code below;

    foreach ($tables as $t) {
    
    	echo '<option value="'.$t->$database.'"';
    
    	if ($_POST['db_gwa_selected'] == $t->$database) { echo ' selected'; }
    
    	echo '>'.$t->$database.'</option>'."\n";
    
    }

    This will display the current table in the table edit screen...If you like it, maybe you'll add it to future versions ?

    Thanks for this great plugin...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic