Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
10-23-2006, 04:57 PM #1
- Join Date
- Aug 2003
- One step ahead of you.
- Thanked 3 Times in 3 Posts
Database class / PHP database extension bridge.
This is a really simple to use database class that lets you use many databases using the same functions. It is very easy to use and should help with common tasks and debugging.
Connecting is as easy as:
$db = internal_dbal::connect('mysql', 'server', 'database', 'user', 'password');
You can connect by yourself and use internal_dbal::start() to use the class if you want to make a specific choice.
The class has 12 methods of, most of which you will know what they do instantly.
The exact usage is shown in dbal.php included in the zip file.
It shows every nice feature the class has to offer.
You do not need all the files in the zip file. I would actually suggest to remove those you don't use as that will save you disk space.
I recommend you to download GeShi for SQL and PHP highlighting when you're debugging.
By default the debug functionality is disabled - for security reasons. To enable it find these 3 constants:
const DEBUG = false;
const SPECIAL_BACKTRACE = false;
const SPECIAL_DEBUG = false;
This class was designed to allow my classes more compatibility for databases as well as database extensions (MySQL can be accessed through mysql, mysqli and PDO). It is required to use them.
If you have any questions I'll be happy to anwser them.I'm not sure if this was any help, but I hope it didn't make you stupider.
Experience is something you get just after you really need it.
PHP Installation Guide Feedback welcome.