Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 05:39:15 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149667 Posts in 21100 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Database Class Issue. Help!  (Read 608 times)
bazarov

Offline Offline

Posts: 1


« on: May 05, 2006, 11:59:10 PM »

Hi all,

I'm building a class that needs to use the Web Baker database framework. The problem is that I can't create another database instance or simply access the database object from my class.

Is there any other solution to this problem than the 'manual' use of PHP mysql functions (or another class like PEAR:DB)?

Thanks!
Logged
Stefan
Guest
« Reply #1 on: May 06, 2006, 08:53:02 AM »

If you want to use the same database and table for both projects, you can just use the $database object which is declared in global scope.
Another database instance won't help because it uses the same connection settings. If you need a separate database or table, then you're right: it won't work with the WB database wrapper.
To change this, however, would only require small changes in class database.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!