Jump to content

mysql connect/close


thegraingers

Recommended Posts

[!--quoteo(post=332901:date=Jan 3 2006, 09:42 PM:name=fenway)--][div class=\'quotetop\']QUOTE(fenway @ Jan 3 2006, 09:42 PM) 332901[/snapback][/div][div class=\'quotemain\'][!--quotec--]

I assume you mean [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=82506\" target=\"_blank\"]this topic[/a], but there's no post there!?!?

 

 

 

whooooops, so any answers to my question.............

Link to comment
https://forums.phpfreaks.com/topic/3140-mysql-connectclose/#findComment-10575
Share on other sites

my question, which appears to have been lost is

 

Is it better on a web page to open a mysql connection at the start of the page, do a number of queries and then close the database connection

 

OR

 

if it is possible to split the queries up would it be better to do a number of open, query, close operations.

 

 

a typical page might look like this

query for advert selection

query to log advert shown

 

query for another advert

query to log advert

 

query to populate part of a side menu

query for a poll in side menu

 

query for page content

 

query for another advert

query to log advert

 

etc

Link to comment
https://forums.phpfreaks.com/topic/3140-mysql-connectclose/#findComment-10579
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.