[Typo3-dev] SQL wrapper functions
John Begley
John.Begley at hummingbird.com
Wed Nov 3 17:08:10 CET 2004
> *hiya!*
>
> On Tue, 02 Nov 2004, John Begley wrote the following:
>> I'm using the sql wrapper functions independently of the typo3 database -
>is
>> this allowed/needed?? - it seems to be trying to access tables from typo3
>> database inside a separate database... Am I looking at things the wrong
>way
>> here? Do I just use regular mysql functions for separate databases?
>
> No, but if you use the same identifier for two databases, you'll have
> to re-connect to the other one if you want to use it ;-)
> (simply avoid using $GLOBALS['TYPO3_DB'] for any other database, that
> should solve your problems...)
>
I'm still confused. I even created another instance of t3lib_db to use to
connect my other database, and there are still the same 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) And I see the
same warnings like Table '<my_dbase>.cache_hash' doesn't exist - there still
seems to be a cross over problem between 2 databases...??
Cheers
John
More information about the TYPO3-dev
mailing list