RaythMistwalker Posted January 7, 2010 Share Posted January 7, 2010 im revamping my whole site and am now on the admin part where i hit a problem.. The main information comes from one database username_users and i also use the admin cp to get data from username_arcade Is it possible to switch what database I am accessing by using 2 mysql_select_db functions? Quote Link to comment https://forums.phpfreaks.com/topic/187578-changing-database/ Share on other sites More sharing options...
PFMaBiSmAd Posted January 7, 2010 Share Posted January 7, 2010 Yes. Are you querying tables in two different databases or are those actually two tables in a single database? Quote Link to comment https://forums.phpfreaks.com/topic/187578-changing-database/#findComment-990340 Share on other sites More sharing options...
RaythMistwalker Posted January 7, 2010 Author Share Posted January 7, 2010 its more like 7 tables in 2 databases atm. I'm fine with switching tables (since thats in the mysql_query) but i just wanted to check i'm possible to change database before i kill my website (which is likely with my luck) Quote Link to comment https://forums.phpfreaks.com/topic/187578-changing-database/#findComment-990345 Share on other sites More sharing options...
PFMaBiSmAd Posted January 7, 2010 Share Posted January 7, 2010 See this current thread for more information about using more than one database at a time - http://www.phpfreaks.com/forums/index.php/topic,283182.0.html Quote Link to comment https://forums.phpfreaks.com/topic/187578-changing-database/#findComment-990357 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.