Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
March 20, 2010, 03:04:05 AM
1 Hour
1 Day
1 Week
1 Month
Forever
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
WebsiteBaker Community Forum
English
Archive (posts up to 2007)
(Moderators:
Argos
,
BerndJM
)
Database Class Issue. Help!
Pages:
[
1
]
Author
Topic: Database Class Issue. Help! (Read 465 times)
bazarov
Offline
Posts: 1
Database Class Issue. Help!
«
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
Re: Database Class Issue. Help!
«
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
]
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
Loading...