WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How can I close DB connection and open it again?

[Resolved] How can I close DB connection and open it again?

  • Hello guys!

    I need to close the connection that WordPress have whit MySQL, execute some code and than open that conection again, is that possible?

    What I need is something like this:

    $wp->db_close(); // I need to knwo how to close it!!
    include('mycode.php');
    $wp->db_open(); // I need to know hot to open it!!

    I need this because my script need to connect to an external database and execute some queryes…

    Some one could help me?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] How can I close DB connection and open it again?’ is closed to new replies.