|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
Is there any way of retrieving the information associated with the current MySQL connection? I suppose that the username and password would not be retrievable for security reasons, but what about the hostname and currently selected database?
The reason is so that I can write a modular function that selects a different database, does some queries on it, and then re-selects the original database before returning.
I've dug through the PHP and MySQL manuals, but haven't found anything.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 5,833
Joined: January 2000
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|