Wednesday, March 2, 2011

what feature of php 5.3 does appulous make the most use of in its database system?

I have a page that is supposed to connect to two separate databases. One for displaying the latest three posts from my simplemachines forum and one for all the other page data.

The connections are established through 2 separate require files at the beginning of the page.

For the simplemachines forum Im using its own functions called SSI.

For the other connection I have a separate file written.

heres the code:

PHP Code: require (forum/SSI.php);
require (functionFiles/dbConnectLOCAL.php);
dbConnect (); 


Strangely when I upload it to my webhost, it works fine with both connections. But when I try to test it locally the existing connection looks for the tables in whichever database is connected first.

Does anyone know how I can connect to two databases parallelly?

thanks,

TT Hi,

I have a page that is supposed to connect to two separate databases. One for displaying the latest three posts from my simplemachines forum and one for all the other page data.

The connections are established through 2 separate require files at the beginning of the page.

For the simplemachines forum Im using its own functions called SSI.

For the other connection I have a separate file written.

heres the code:

PHP Code: require (forum/SSI.php);
require (functionFiles/dbConnectLOCAL.php);
dbConnect (); 


Strangely when I upload it to my webhost, it works fine with both connections. But when I try to test it locally the existing connection looks for the tables in whichever database is connected first.

Does anyone know how I can connect to two databases parallelly?

thanks,

No comments:

Post a Comment