[TYPO3] Calling database from out extension
Tapio Markula
tapio.markula at atwebteam.com
Sun Dec 10 15:31:31 CET 2006
Mads Stampe kirjoitti:
> Hello,
>
> I'm about to make a file that should contain some information for a
> JavaScript file. The problem is that the script shall work without
> calling it like an extension.
>
> My problem is that I cannot communicate with the database as usual
>
> Anyone knows how to connect to the database from a single file placed in
> the root dir?
>
> Thanks!
for you own queries
mysql_query($query,$GLOBALS['TYPO3_DB']->link);
where $query is any valid SQL-query from the Typo3 database.
More information about the TYPO3-english
mailing list