This module is a wrapper for the PEAR DB class. It allows you to connect directly to any database that PHP supports.

Typical usage of this module would be something like this:

  if (DB::isError($db)) { 

     echo DB::errorMessage($db);

  } else {

    $query="select * from MyTable";

    if (DB::isError($result)) {

      echo DB::errorMessage($result);

    } else {

      // do something with the results


See the documentation for PEAR DB, at the website for more information. And remember that if you use SQL with user supplied values, you must filter these values.