Woodburn2006 Posted September 9, 2006 Share Posted September 9, 2006 i am trying to display info on a single page from multiple databases but the first sql query is fine as i have selected the first db to use. but i use the mysql_select_db() function to select the next DB but it still tries to connect to the first DB and ignores the fact that i have tried to select a new DB. is there any way i can do this? Link to comment https://forums.phpfreaks.com/topic/20244-using-multiple-databases/ Share on other sites More sharing options...
maxic0 Posted September 9, 2006 Share Posted September 9, 2006 Put mysql_close() at the end of the first piece.Then connect again. Link to comment https://forums.phpfreaks.com/topic/20244-using-multiple-databases/#findComment-89088 Share on other sites More sharing options...
Woodburn2006 Posted September 9, 2006 Author Share Posted September 9, 2006 cool thanks, sorted now Link to comment https://forums.phpfreaks.com/topic/20244-using-multiple-databases/#findComment-89092 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.