Jump to content

what is the best way to deal with the database?


zetcoby

Recommended Posts

i wanna know what is the best way to deal with the database, by that i mean:

>>> if i have a huge project and every time a user logs on a page to view the goods that are for sale how can i make it so that if he goes to an other page and after a while return back to the goods page, i want that page not to take the info again from the DB but mantain it somewhere, all i want is to check if the DB has updated so only then the page should take the info again from the DB...

I dont reall know how to put this.... all i wan is to use the DB less not using a query every time i need some info from the DB

Is there a way to do this?

It seems as if you are looking to cache the database query in order to return the results of the cache. This db class hasn't been updated since 2006, but it may give you some ideas on how to accomplish what you want: http://www.troywolf.com/articles/php/class_db/

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.