1
fply0_0
Database connection question
  • 2006/7/13 14:16

  • fply0_0

  • Just popping in

  • Posts: 2

  • Since: 2006/7/13


there are 2 databases are installed, one is the XOOPS database itself and the other is my working database let's call it new database, I'd want to know if there is a function inside XOOPS that can be used to connect the new database???

2
birdseed
Re: Database connection question
  • 2006/7/13 16:50

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi

No this is not possible, only that way...

$sourceConn = new XoopsMySQLDatabaseSafe();
        
$sourceConn->setLogger(XoopsLogger::instance());
        
$sourceConn->setPrefix($prefix);
        
$sourceConn->conn mysql_connect($host$username$password);
        if (
$sourceConn->conn) {
            if (!
mysql_select_db($database)) {
                
$messages[] = "Datenbank " $database " konnte nicht ausgewählt werden.";
            }


a bit ugly...

greetings
MK

3
fply0_0
Re: Database connection question
  • 2006/7/13 22:48

  • fply0_0

  • Just popping in

  • Posts: 2

  • Since: 2006/7/13


thx 4 that

Login

Who's Online

438 user(s) are online (350 user(s) are browsing Support Forums)


Members: 0


Guests: 438


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits