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;
}
DB
class and stored as themselves in this object? – M1keobject
but not their own class, e.g.$db1 = new DB(); $db2 = new DB();
now both are separate objects but they are of the same class. – M1ke