ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-lib
php-lib
[Phplib-users] DB_Sql question
by Kelby Zorgdrager other posts by this author
Nov 8 2005 2:25PM messages near this date
RE: [Phplib-users] CMSs that use templates | Re: [Phplib-users] DB_Sql question
Folks:

Gotta question for you. I am experiencing a unexpected problem when  
using the DB_Sql class. It appears that if I create a DB_Sql object  
to one database (and perform a query) then create a second DB_Sql  
object to another database (and perform a query), when I return to  
the first object, it's connection state is invalid. Due to the  
architecture of our app, I can not consolidate the two objects into  
one (that would be reused).

I have attached a sample as an example to show the problem.

Assume for the example there are:
-->  two databases, DB1 and DB2
-->  a table in each db (DB1.FILE and DB2.USER)

I have attached two SQL files for the tables along with the example.  
Any insight into why I am seeing this would be greatly appreciated.

Thanks.

KZ
Attachments:
db_mysql_test.php
FILE.sql
unknown1
USER.sql

Thread:
Kelby Zorgdrager
Andrew Crawford

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved