Friday, 23 August 2013

php: getting database name from own mysli class

php: getting database name from own mysli class

i made a wrapper class for mysqli with the following syntax:
class mydb extends mysqli
{
....
}
i'm creating instances like the following:
$conn = new mydb($host $username , $pass, $dbname);
i'm wondering - how can i access $dbname from inside the class? i'm
looking for an mysqli equivalent for the mysql_db_name() function.

No comments:

Post a Comment