Connect with multiple databases using PHP


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.


About Author

Sumith Harshan is the Web Engineer Specializes in Java Script, JQuery, HTML4/5, CSS2/3, PHP, CodeIgniter, CakePHP, J2SE, J2EE, XML, Hacking & Security, Mobile Interface Developing, Magento, Wordpress, Joomla, Drupal,PHPBB,Facebook App Developing and Open cart...etc.