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
Post a Comment