From c4a46297a0628b73421c7a3cc232a6f9c27c248e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 8 Nov 2022 09:45:04 -0700 Subject: [PATCH] Add PHP ODBC --- resources/pdo.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/pdo.php b/resources/pdo.php index 635bb287f2..207a09b365 100644 --- a/resources/pdo.php +++ b/resources/pdo.php @@ -271,6 +271,17 @@ if ($db_type == "pgsql") { } } //end if db_type pgsql +if ($db_type == "odbc") { + //database connection + try { + $db = new PDO("odbc:".$db_name); + } + catch (PDOException $error) { + print "error: " . $error->getMessage() . "
"; + die(); + } +} //end if db_type pgsql + //get the domain list if (!is_array($_SESSION['domains']) or !isset($_SESSION["domain_uuid"])) {