How can you connect and transferring data with multiple databases using php.Only using mysql_connect to simultaneously multiple databases to create multiple databases connections.

You can access data with these connections to the databases as following.

Note: Always is server name as IP Address.If you use localhost, then each queries would not execute.