Changeset 401 for branches/Modular/Common/Database.php
- Timestamp:
- Mar 30, 2012, 2:02:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Modular/Common/Database.php
r358 r401 37 37 var $ShowSQLError = false; 38 38 var $ShowSQLQuery = false; 39 var $Database = ''; 39 40 40 41 function __construct($Host, $User, $Password, $Database) 41 42 { 43 $this->Database = $Database; 42 44 if($this->Type == 'mysql') $ConnectionString = 'mysql:host='.$Host.';dbname='.$Database; 43 45 else if($this->Type == 'pgsql') $ConnectionString = 'pgsql:dbname='.$Database.';host='.$Host; … … 49 51 function select_db($Database) 50 52 { 53 $this->Database = $Database; 51 54 $this->query('USE '.$Database); 52 55 }
Note:
See TracChangeset
for help on using the changeset viewer.