J
|
Jane 4/15/2008 |
Hi, global $conn; $strUpdate="UPDATE users SET LAST_ACTIVITY = now() where UserName='".$_SESSION["UserID"]."'"; db_exec($strUpdate,$conn);
|
E
|
erago author 4/15/2008 |
Hi, try to use this code: where UserName is your actual field name where username is stored.
|
R
|
ringlis1 4/26/2008 |
What would the proper syntax be to adjust for adjusted date and time. I use this: |
J
|
Jane 4/28/2008 |
Hi, global $conn; $strUpdate="UPDATE users SET LAST_ACTIVITY = '".date('Y-m-d H:i', strtotime("-9 hour"))."' where UserName='".$_SESSION["UserID"]."'"; db_exec($strUpdate,$conn); |