1 pjaol 1.1 <?php
2
3 class dbiw {
4
5 private $dbh;
6
7
8 function getDBH () {
9 $conf = Conf::instance();
10 $db_conf = $conf->get("db_config");
11 $dbType = $db_conf["type"];
12 include("mysql_conn.inc");
13
14 }
15 function __construct () {
16 $this->getDBH();
17 $this->$dbh = new db_handle();
18
19 }
20 function dbExec ($sql) {
21 if (! $dbh){
22 pjaol 1.1 $this->getDBH();
23 $dbh = new db_handle();
24 }
25
26 $this->$dbh->sel($sql);
27 }
28
29
30 }
31
32 ?>
|