| 123456789101112131415 |
- <?php
- class PGSQLDriver
- {
-
- public function DBInit(){
- global $DBCONF;
- $DBH = "";
- try {
- $DBH = new PDO("pgsql:host={$DBCONF['host']};port={$DBCONF['port']};dbname={$DBCONF['database']}",$DBCONF["username"],$DBCONF["password"],array(PDO::ATTR_PERSISTENT=>false));
- } catch (PDOException $e) {
- print "Error!: ".$e->getMessage()."<br/>";
- }
- return $DBH;
- }
- }
|