Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to connect to an external database in Joomla?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 561
    Comment on it

    External Database means database other than Joomla Database. You can connect database other that Joomla by following method:

    JDatabase->getInstance()
    For example:
    $external_db = array(); //prevent problems
    $external_db['driver'] = 'mysql'; // Database driver name
    $external_db['host'] = 'localhost'; // Database host name
    $external_db['user'] = 'root'; // User for database authentication
    $external_db['password'] = 'root'; // Password for database authentication
    $external_db['database'] = 'databasename'; // Database name
    $db = & JDatabase::getInstance( $external_db );
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: