How can i synchronize two database tables with PHP?
问题 I need to use PHP to copy data from one MySQL database to another. I can build and array of all the values to go into the other database but first I want to make sure the database has the correct fields before inserting. For example say I am going to be copying data from tableA to tableB. I can set up tableB to look just like tableA but in the future I may add columns to tableA and forget to add them to tableB, then my PHP script will try to insert data into a column that doesn't exist in