![](https://bavotasan.com/wp-content/uploads/2011/04/database.jpg)
Access Another Database in WordPress
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…
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…