Jump to content

Is this posible in php?


adamriley

Recommended Posts

i THINK its something to do with storing cookies, and not the choc chip kind lmao!

 

How do you know how they look or taste? Ever ate one?

 

1) Store the current page a user is viewing

2) Query the database for rows that match the current page

consider every page as a single row in a table.  shd hv col

a)last viewed time

b)number of views in past 10 mins.

 

now if user request a page

if current time > last viewed time + 10 mins  then reset the number of views col to 0

else increment the number of views col by 1.

and fetch this value to display on the page.

 

Here 10 mins is an offset cd be anything depending upon the defination of your current !!

 

+ I can create such script for you easily . just lem no through pm.

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.