globex Posted March 3, 2007 Share Posted March 3, 2007 Is there a way to have a row from one database table to be synchronized with a table in a row of a different database. So that when one updates, the other automatically does the same. Thanks, - globex Quote Link to comment https://forums.phpfreaks.com/topic/40975-links-database-rows/ Share on other sites More sharing options...
DanDaBeginner Posted March 3, 2007 Share Posted March 3, 2007 yes.. if youre using InnoDB you can use transaction if not then youre gonna have to manually coded it, if the other one fails then erase the first update.. Quote Link to comment https://forums.phpfreaks.com/topic/40975-links-database-rows/#findComment-198421 Share on other sites More sharing options...
fenway Posted March 3, 2007 Share Posted March 3, 2007 I don't know what you mean by syncrhonized? Quote Link to comment https://forums.phpfreaks.com/topic/40975-links-database-rows/#findComment-198627 Share on other sites More sharing options...
globex Posted March 3, 2007 Author Share Posted March 3, 2007 I have IPB installed. When someone registers in IPB it adds a user to the ibf_members table. I want that user information automatically copied to another database I have setup for a different service. Quote Link to comment https://forums.phpfreaks.com/topic/40975-links-database-rows/#findComment-198729 Share on other sites More sharing options...
fenway Posted March 3, 2007 Share Posted March 3, 2007 That's going to be rather complicated, especially across databases... you may want to look into federated tables. Quote Link to comment https://forums.phpfreaks.com/topic/40975-links-database-rows/#findComment-198789 Share on other sites More sharing options...
Snooble Posted March 4, 2007 Share Posted March 4, 2007 it shouldn't be hard at all. I know almost nothing about MySQL. But, goto the registration page, find where it POST's the form to, keep searching till you find the SQL query and underneath write it INSERTing the same variables to another db? Snooble Quote Link to comment https://forums.phpfreaks.com/topic/40975-links-database-rows/#findComment-199150 Share on other sites More sharing options...
fenway Posted March 4, 2007 Share Posted March 4, 2007 it shouldn't be hard at all. I know almost nothing about MySQL. But, goto the registration page, find where it POST's the form to, keep searching till you find the SQL query and underneath write it INSERTing the same variables to another db? Snooble It sounded like the poster wanted a long-term solution; I guess you could find every single reference to that table (insert, update, delete, etc.) and tinker with them, but good luck when IPB issues an update and you have to start all over again. Quote Link to comment https://forums.phpfreaks.com/topic/40975-links-database-rows/#findComment-199178 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.