robert_gsfame Posted August 26, 2009 Share Posted August 26, 2009 I have put my database connection inside configuration.php...Let say "First Database" is my database name. Then when i want to use the connection to "First Database", i use "include_once('configuration.php') My question is : is it possible to insert the same data into two tables at the same time while each table is located inside different database let say "First Database" and "Second Database" ? Link to comment https://forums.phpfreaks.com/topic/171933-solved-insert-into-different-database/ Share on other sites More sharing options...
trq Posted August 26, 2009 Share Posted August 26, 2009 You can have a connection open to two different databases at the same time by storing your connection resource in a variable, then passing that connection resource to the second argument of mysql_query when you need it. Link to comment https://forums.phpfreaks.com/topic/171933-solved-insert-into-different-database/#findComment-906578 Share on other sites More sharing options...
robert_gsfame Posted August 26, 2009 Author Share Posted August 26, 2009 okay thanks Link to comment https://forums.phpfreaks.com/topic/171933-solved-insert-into-different-database/#findComment-906581 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.