Sometimes on your work with PHP you need to connect to 2 or more database. In example, you want to take data on table from database A and process the data. Then you want to insert or update the processed data into database B. Here I will show you how to connect to 2 database and run query from it.


