From f14199fac302965375ccae8fb3b86cf35900d8e1 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Wed, 27 Aug 2025 14:31:37 -0400 Subject: [PATCH] devsql.php start to work --- www/devsql.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/www/devsql.php b/www/devsql.php index 859ecd1..6ee8edb 100644 --- a/www/devsql.php +++ b/www/devsql.php @@ -8,20 +8,22 @@ function sql_connect() { +$dbtype=getenv("DB_TYPE"); switch($dbtype) { case 'MYSQL' : include_once "unimar.php"; - echo ("unimar.php included"); + $STR="unimar.php included"; break; case 'POSTGRESQL' : include_once "unipos.php"; - echo ("unipos.php included"); + $STR="unipos.php included"; break; default : - $daterr="Database type <".$dbtype."> is unexpected!" + $daterr="Database type <".$dbtype."> is unexpected!"; throw new ErrorException($daterr); break; } +return $STR; } ?> -- 2.47.3