I have no idea how to do this so please forgive my not trying before i ask. I would like to create a system that will allow user to vote, count and tell who won. i can do all that is stated. now i would like to add the functionality of having two database where one will be a real time back-up of the other. i do not know if its possible to have two "insert" statements, one inserting to one database and one the other. plan to use html for my interphace, mysql for the database and php to link the two. please help. titles of which books would be highly appreciated.
Jump to Post
Google for "mysql replication" or "mysql master slave". If that functionality is not sufficient then code your own database abstraction layer in PHP so that each query which is not a SELECT statement is mirrored on a separate connection to the 2nd server.
All 2 Replies
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.