Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Senior Coder
    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:
    PHP Code:
    require 'internal_dbal/dbal.class.php';
    $db internal_dbal::connect('mysql''server''database''user''password');
    idbal_exception $e)
    The first argument is your database of choice. The class will automatically use the best extension available for the database you select.
    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:
    PHP Code:
        const DEBUG false;
    and set them to true.

    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.
    Attached Files Attached Files
    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts