[Typo3-dev] General DB Note: mysql* to $GLOBALS['TYPO3_DB']->sql*

Michael Cannon michael at cannonbose.com
Fri May 28 19:26:05 CEST 2004


FYI, Reminder, Just a note:

In case you're having some funky database query issues. Try this,  
replace your "mysql*" calls with "$GLOBALS['TYPO3_DB']->sql*".

This direction comes from
-----
t3lib/class.t3lib_db.php:112: * - mysql() wrapper functions; These are  
transitional functions. By a simple search/replace you should be able  
to substitute all mysql*() calls with $GLOBALS['TYPO3_DB']->sql*() and  
your application will work out of the box.
-----

I ran into this while trying to resolve "Warning: mysql_fetch_row():  
supplied argument is not a valid MySQL result resource in  
/home2/cannon/local/lib/typo3_src/typo3/ext/newloginbox/pi3/ 
class.tx_newloginbox_pi3.php on line 157".

Took a bit to find the answer, but things are smooth sailing again.

Thank you to those of you putting Typo3 together so well for the rest  
of us.

Michael






More information about the TYPO3-dev mailing list