mysql connect multiple databases in single webpage using php

you will learn how to select the records from connect multiple databases tables using the SQL SELECT query in PHP.

In this instructional exercise, utilizing three PHP APIs (API – Application Programming Interface), we’ll associate two diverse MySQL databases on a solitary PHP page. The three APIs are-

PHP’s MySQL Extension for connect multiple databases

PHP’s mysqli Extension for connect multiple databases

PHP Data Objects(PDO) for connect multiple databases