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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.