GOD Brotherh00d
New Member
- Joined
- May 5, 2012
- Messages
- 32
- Reaction score
- 0
//connect to SQL
AAC::$SQL = new SQL($cfg['SQL_Server'], $cfg['SQL_User'], $cfg['SQL_Password'], $dats);
if ($cfg['schema_check']) {
if (!AAC::$SQL->getSchemaVersion()) {
throw new aacException('Sorry, your server schema is not supported. You may set $cfg[\'schema_check\'] = false; to everride this message.');
} elseif(AAC::$SQL->getSchemaVersion() != $cfg['schema_version']) {
throw new aacException('OTServ schema version [<b>'.AAC::$SQL->getSchemaVersion().'</b>] is not compatible with AAC schema version [<b>'.$cfg['schema_version'].'</b>]. Check <a href="http://nicaw.net/">http://nicaw.net/</a> for latest AAC or set $cfg[\'schema_check\'] = false; to everride this message.');
}
}
how can i make to read it from 2 databases? TFS and TFS1
$cfg['SQL_Database'] = TFS
$cfg['SQL_Database1'] = TFS1
i used $dats = $cfg['SQL_Database'] || $cfg['SQL_Database1']; but not work
used then $dats = $cfg['SQL_Database'] and $cfg['SQL_Database1']; no error and not work ;/
please help