|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Question about updating users online.
Hi all.
I have some code, and it suppose to update users to offline every so often. But I'm not sure if it would work. PHP Code:
Am I wrong or what?
__________________
"And what, Socrates, is the food of the soul? Surely, I said, knowledge is the food of the soul." -- Plato |
|
#2
|
||||
|
||||
|
Why do you need to mark people offline? Why not just count everyone that's been active within the last X minutes as online? Anyone that's inactive... well, is inactive. You don't care. No need for an "online" column at all, which is a waste anyhow.
$inactive is an integer, so don't use quotes around it in the query, also. Are you updating the "inactive" column each time the user does something? ---John Holmes... |
|
#3
|
||||
|
||||
|
Quote:
Yes. I think I have it straight now. Thanks! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > Question about updating users online. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|