Write to external database

chris93 29 Aug, 2011
Hello,
another question for today: I need to write some entries into an external database. I've found the following solution:
<?php
        $options = array(
          'host' => 'xxx',
          'user' => 'xxx',
          'password' => 'xxx',
          'database' => 'xxx',
          'prefix' = 'xxx',
          'select' => true
        );
        $db2 =& new JDatabaseMySQL($options);
        ?>

Unfortunately, I don't know any MySQL-Stuff. After configuring the options, how do i write content taken from a form into that database? 🤨
I guess I need to put the whole stuff into "OnSubmit After Verification - Success:".

Thanks
GreyHead 29 Aug, 2011
Hi chris93,

You can do this with the DB Save action; click the advanced tab in the configuration for the settings.

Bob
This topic is locked and no more replies can be posted.