Welcome, Guest. Please login or register.
March 20, 2010, 03:04:05 AM

Login with username, password and session length
Search:     Advanced search
WB 2.8.1 veröffentlicht!
Download und weitere Informationen gibt es hier .
110504 Posts in 15959 Topics by 9305 Members
Latest Member: gomatox
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Archive (posts up to 2007) (Moderators: Argos, BerndJM)
| | |-+  Database Class Issue. Help!
Pages: [1] Go Down Print
Author Topic: Database Class Issue. Help!  (Read 465 times)
bazarov

Offline Offline

Posts: 1


« on: May 06, 2006, 12:59:10 AM »

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, 09: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.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!