1
andrea_p
Module that access on external database
  • 2004/4/14 11:54

  • andrea_p

  • Just popping in

  • Posts: 2

  • Since: 2004/4/14


I'm writing a module that must access to another database.
Now i connect and disconnect fron this database on every blocks/page but i think that this can be slow if there is more block on the same page. Where i can do my external connection and reuse this on every page/block?

Andrea

2
Mithrandir
Re: Module that access on external database

You could go to include/common.php and insert a line to include a custom header file (just to make it easier to upgrade)

In that custom header file, you can then make the connection to the 2nd database, which will then be available like $xoopsDB is.

Login

Who's Online

409 user(s) are online (319 user(s) are browsing Support Forums)


Members: 1


Guests: 408


xoopdio,

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