Hello all,
My problem :
What i'm trying to do is the following. Two databases, 1 gets the information of the other. So in my first database i want to make sure some company still has an valid license record.
If there is an valid record in the first database it will return a record with the database credentials of the production database of this company. The databases aren't on the same server for security reasons.
Normally you can create two databases with this awesome lib like this :
$db_license = new fDatabase('mysql', $dbname, $dbuser, $dbpass, $dbhost, $dbport);
$db_production = new fDatabase('mysql', $dbname2, $dbuser2, $dbpass2, $dbhost2, $dbport2);
// Attach the db_production db as the default
fORMDatabase::attach($db_production);
fORMDatabase::attach($db_license, 'db_license');
But how can i make this work as described earlier? By using the db_license db the fill the database credentials of the other?
With kind regards,
Frank van der Geld Uni-Coder BV