Some other things to do with the date and time...
Basically I want to set it up so that it will display if a user is online or offline..
Say i have a field called ' activetime' which is updated everytime a user loads a page...
And Ive already selected all the stuff from the database and ' activetime' is refered to as $activetime
What would the code for the PHP be so that...
If $activetime is older than 5mins then do this....
otherwise do this....
??
Also what would the php be so it selects all the rows from the database where the 'activetime' field is no older than 5mins???
Thanks in advance
-James 
|