acey99 Posted December 7, 2005 Share Posted December 7, 2005 ok I was told to use $q=mysql_query("SELECT DATABASE()"); to return what db i'm on, the problem is I don't know how to use this in php, any help? Link to comment https://forums.phpfreaks.com/topic/3000-what-db-am-i-using/ Share on other sites More sharing options...
seanlim Posted December 8, 2005 Share Posted December 8, 2005 $q=mysql_query("SELECT DATABASE()"); $col = mysql_fetch_array($q); echo "Database: ".$col[0]; HTH Link to comment https://forums.phpfreaks.com/topic/3000-what-db-am-i-using/#findComment-10085 Share on other sites More sharing options...
Arenium Posted December 11, 2005 Share Posted December 11, 2005 See the MySQL Data Retrieval section of the PHPFreaks FAQ linked in my signature. Link to comment https://forums.phpfreaks.com/topic/3000-what-db-am-i-using/#findComment-10128 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.