Doing a loop with multiple DBs simultaneoulsy

In the name of bad practices, I’m going to advise that you immediately rule out these using raw SQL queries with remote databases in the same page. It would be slow, insecure, and a hassle to maintain. That you’ve landed yourself in a predicament where a combination of hyperDB+multisite is not an option demonstrates that … Read more

How to use hyperdb to separate and share a user dataset between wordpress installs?

I believe Crazycoolcam spelled the table incorrectly, user_meta vs usermeta. You may also want to define the else case, what happens if the table is not user. Try this: <?php $wpdb->add_database(array( //Connect to Users Database ‘host’ => DB_HOST, // I am using the same host for my two DBs ‘user’ => DB_USER, // I am … Read more