[TYPO3] connect to data base

Markus Stauffiger markus at 4eyes.ch
Fri Aug 4 15:08:21 CEST 2006


Hi there

You could use the "t3lib_db" class:

$con = $GLOBALS['TYPO3_DB']->sql_query($query);

Have a look at t3lib/class.t3lib_db.php for more information, there are 
some convenient functions for the db.

Greets
Markus

Miguel Angel Calleja Lázaro schrieb:
> Hi list, in Typo3 3.8 when I wanted to connect to data base  i had to do:
> $query="Select ......";
> $con=mysql(TYPO3_db,$query);
> 
> In Typo3 4.0 it follows equal?? or has it changed?
> 




More information about the TYPO3-english mailing list