To set a permanent connection use prefix 'p:'
example:
"$pMysqli = new mysqli('p:'.DB_HOST, DB_USERNAME, DB_PASSWORD, DB_NAME);"
This function is an alias of: mysqli::__construct()
Note:
If mysqli exception mode is not enabled and a connection fails, then mysqli_connect() returns
false
instead of an object. The mysqli_connect_error() function can be used to fetch the connection error.
To set a permanent connection use prefix 'p:'
example:
"$pMysqli = new mysqli('p:'.DB_HOST, DB_USERNAME, DB_PASSWORD, DB_NAME);"