Database Function connectLocalDB()

function connectLocalDB()

Name in Zenario 8

ze\db::connectLocal()

Summary

Connects to the local database if you are not already connected, so you may query any local tables.

Where You Can Use It

From Zenario 7.0.0 onwards.

Description

When you change database using a function such as connectGlobalDB() or connectHubDB() the database functions will then run queries against that database.

You must call this function to change back before querying any local table or calling any of the CMS functions.

Return Value

No return value.

Notes

As of version 7.0.2 we are now using MySQLi. You can now access the local database using the cms_core::$localDB variable and access the last database that was connected to using the cms_core::$lastDB variable. The database functions will always run queries using the cms_core::$lastDB variable.