php - Get connection parameters -


is there way access connection parameters given mysqli connection?

$con = mysqli_connect("127.0.0.1","root","","mydb") ; 

now how can use $con acces database connection properties?

$username = $con->username ??? 

thanks

i don't know why you'd want this? save data in variable acces later instead of using connection variable.

and no it's impossible data using $con variable. try var_dump see if acces property of object.


Comments

Popular posts from this blog

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -