the thing is i have two tables in two different databases let’s call them A and B.
in database A we have table1 and in database B we have table2. the primary key of table1 is a foreign key in table 2. So i need to use a join query to extract data from the two databases in the same time. Or using PDO you can not connect to two databases using the same pdo object !
$bdd = new PDO(‘mysql:host=localhost;dbname=A’, ‘root’, ‘12345’);
so what can i do ?
You should be able to do something like:
Provided the user has relevant permissions.