After calling mysql_select_db to grab a database, is there any way to later output the name of the database that is currently selected? This seems very basic bu
mysql_select_db
In the comments of http://www.php.net/manual/de/function.mysql-db-name.php I found this one from ericpp % bigfoot.com:
If you just need the current database name, you can use MySQL's SELECT DATABASE() command: