in reply to users online script not accurate
This saves you from doing your own calculations, and makes sure you don't get bitten by the webserver and db server having clocks that are not in sync. (in the example I gave above, you're trusting the db to be the authoritive source)DELETE FROM day_time WHERE time < DATE_SUB(NOW(), Interval 24 Hour)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: users online script not accurate
by tweetiepooh (Hermit) on Nov 08, 2005 at 11:17 UTC |