I have 2 databases and i need to make a join from both databases in a query. But how is this possible when you prepare the statement?
I have 2 database connection files. But how for example could i select one table from on database (pdo) and then join from other table in the other database (pdotwo)?
private $pdo;
private $pdotwo;
public function __construct(DB $pdo, DBTwo $pdotwo)
{
$this->pdo = $pdo->pdo;
$this->pdotwo = $pdotwo->pdotwo;
}