From: Jean-Marc Pigeon (Delson) Date: Wed, 27 Aug 2025 18:31:37 +0000 (-0400) Subject: devsql.php start to work X-Git-Tag: end-0.15~56 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=f14199fac302965375ccae8fb3b86cf35900d8e1;p=jmp%2Fmailleur devsql.php start to work --- 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; } ?>