Jump to content

database connectivity scope


ksmatthews

Recommended Posts

HI Gurus,

 

I am wondering how to set up ONE DB connection once only which can be torn down on leaving a web site.

 

Basically I want my DB connection to remain open across multiple pages without going through the process of setting up and tearing down a new connection for each and every page that will query a DB.

 

I have tried this with '$global DB_connect_id' on one page but it is not visible in other pages ...

 

Any help appreciated,

 

Steven M

Link to comment
https://forums.phpfreaks.com/topic/72618-database-connectivity-scope/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.