database

Access Another Database in WordPress

April 4, 2011

When accessing the database in WordPress, you need to use the global variable $wpdb. This will take the constants you set in wp-config.php to connect to your database and retrieve…