use pdo for postgres also

This commit is contained in:
zotlabs
2016-10-19 19:24:12 -07:00
parent 2702b82bc3
commit 3726b546d5
5 changed files with 32 additions and 17 deletions

View File

@@ -5,7 +5,7 @@ require_once('include/dba/dba_driver.php');
class dba_mysql extends dba_driver {
function connect($server, $port, $user,$pass,$db) {
function connect($server, $scheme, $port, $user,$pass,$db) {
$this->db = mysql_connect($server.":".$port,$user,$pass);
if($this->db && mysql_select_db($db,$this->db)) {
$this->connected = true;