In MySQL, I have two different databases -- let\'s call them A and B.
Database A resides on server server1, while database B resides on server server2.
Both serv
The only way I can think of, is by opening 2 separate connections (i.e. instantiate 2 PDO objects) with all the different parameters, use 2 queries to query all the data you need into PHP, and then work with that on PHP.
You can make two separate MySQL connections in PHP, do two queries to the two tables, and then work with the results in PHP.
Another option, since the servers are physically close, is to setup the one or both servers to replicate the needed database/tables to each other. You can look here for more on MySQL replication: http://dev.mysql.com/doc/refman/5.6/en/replication.html