[TYPO3] connecting to a foreign database
Dmitry Dulepov [typo3]
dmitry at typo3.org
Thu Dec 20 15:40:05 CET 2007
Hi!
PEF wrote:
> I'm working on an extension where I have to get some data from a MSSQL
> database. For that purpose I've created a class much similar to the DB
> class used by Typo3.
>
> What I would like to do is to:
> - define a variable $GLOBAL['MSSQL_DB'] to hold my connection to the
> database
> - include my mssql-class, so that I can use it in the same way, that I
> use the $GLOBAL['TYPO3_DB'] - like $GLOBAL['MSSQL_DB']->exec_SELECTquery
>
>
> I'm very much in doubt what will be the right way to do it.
>
> Any qualified suggestions?
Try reading DBAL anual, may be it will give you the answer.
--
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"
More information about the TYPO3-english
mailing list