[TYPO3] Error in SQL with $GLOBALS['TYPO3_DB']->SELECTquery
Dmitry Martynenko
dima at realt.by
Fri Jun 6 17:15:33 CEST 2008
Hi Stephen,
SB> But previously I used
SB> 'website=' .
SB> t3lib_DB::fullQuoteStr('fmf.stephen.local',
SB> 'tx_metri_secure_log'),
SB> And this generated a my_sql error.
SB> Warning: mysql_real_escape_string() expects parameter 2 to be resource, null
SB> given in /srv/http/default/htdocs/t3lib/class.t3lib_db.php on line 554
SB> I guess in the backend t3lib_DB::fullQuoteStr doesn't work maybe? Any way
SB> using $GLOBALS['TYPO3_DB']->fullQuoteStr works.
t3lib_DB is a class!
$GLOBALS['TYPO3_DB'] is an objects of t3lib_DB class!
t3lib_DB::fullQuoteStr - is a static call of function, and it does not
have proper connection to database (parameter 2 to be resource).
--
Dmitry Martynenko
Developer
Web: http://realt.by
More information about the TYPO3-english
mailing list