Manchmal braucht man unter Extensionentwicklung die Externe Datenbank zuzugreifen und bearbeiten:
$this->remote_db = t3lib_div::makeInstance('t3lib_db');
$link = $this->remote_db->sql_pconnect($host,$user,$passw);
if(!$link) {
$this->errors[] = $LANG->getLL("error_connection");
return;
}
$link = $this->remote_db->sql_select_db($db);
if(!$link) {
$this->errors[] = $LANG->getLL("error_no_db");
return;
}
Und dann halt so SELECT
$res = $remote_db->exec_SELETquery($fields, $table, $where);
if($res) {
while(FALSE !== ($row = $remote_db->sql_fetch_assoc($res))) {
...
}
}
HIER MUSS MAN BEACHTEN:
Bei der Verwendung genanntes Verfahrens TYPO3 sucht nach be_groups' Tabele. Das heißt Remote-Datenbank muss auch von TYPO3 sein.














