[resolved] Re-connect to WP database (3 posts)

  1. djh-world
    Posted 10 years ago #

    Hi there.

    In my customised WordPress system, I have sections that connect to other databases on my server.

    However, once I connect to a different database, WordPress tends to screw up because I have moved the SQL connnection elsewhere.

    I was just wondering if there was a way to "reconnect" to the WordPress system, at all?

    I've had a look at the "wp-db.php" class, but it's quite hard to decipher.

    Any ideas?

  2. Joshua Sigar
    Posted 10 years ago #

    Just use the function select() of wpdb to switch db, I guess.

  3. djh-world
    Posted 10 years ago #

    Excellent, you are a star!

    Phew, thanks!

    Topic closed


Topic Closed

This topic has been closed to new replies.

About this Topic