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;
}
?>