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

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -