Welcome Guest, Not a member yet? Register   Sign In
Database Connection Vars
#1

Hi,
Using Ci4, is there a way of sending Database Group variables with the connection statement?
i.e. CouldĀ  do something like this?
PHP Code:
$db db_connect('$databaseGroup',['DBPrefix' => session()->get("prefix"]); 
What is the best practice?
Many thanks.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB