T
tdi1686
I want to make a table that lists the Seconds / Hours / Days since the user
last visited my site, just like the myPHPnuke systems have, but I dont know
the best way to go about it.
At the moment when the user calls the page the database is updated with the
current date/time for that user.
Should I do this in the VB code in the page or write a SQL statement to do
this?
I have tried in SQL to do this and partly succeeded. Ideally I want it do
display the time in seconds if less than 60 seconds since a visit, minutes
if less than 60 minutes, hours if less than 24 and days if otherwise.
tdi1686
last visited my site, just like the myPHPnuke systems have, but I dont know
the best way to go about it.
At the moment when the user calls the page the database is updated with the
current date/time for that user.
Should I do this in the VB code in the page or write a SQL statement to do
this?
I have tried in SQL to do this and partly succeeded. Ideally I want it do
display the time in seconds if less than 60 seconds since a visit, minutes
if less than 60 minutes, hours if less than 24 and days if otherwise.
tdi1686