[Typo3-dev] SQL wrapper functions

Peter Niederlag niederlag at ikd01.de
Tue Nov 2 18:40:52 CET 2004


Hi,

John Begley schrieb:
> I have switched to use the typo3 sql wrapper functions but am receiving the
> following warnings:
> 
> Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result
> resource in D:\TYPO3\dummy-3.7.0\t3lib\class.t3lib_db.php on line 723
> 
> Here is some sample code where this happens:
> 
> $link = $GLOBALS['TYPO3_DB']->sql_pconnect("localhost", "root", "") or
> die("Could not connect : ");

Never a good idea to use root. ;)

Cheers,
Peter




More information about the TYPO3-dev mailing list