J
|
Jane 5/26/2008 |
John, global $conn; $strUpdate = "update TableName set DateTimeOfLogin=Now() and NumbersOfLogin=NumbersOfLogin+1 where UserName='".$_SESSION["UserID"]."'"; db_exec($strUpdate,$conn);
|
M
|
mickmouser 5/27/2008 |
Hello: The following is already in my "after successful log-in" event. Where do I add the code you provided; so I will be able to see how many are logged in, etc. Thank you, Janice |
J
|
Jane 5/27/2008 |
Hi, global $conn; $strUpdate = "update TableName set DateTimeOfLogin=Now() and NumbersOfLogin=NumbersOfLogin+1 where UserName='".$_SESSION["UserID"]."'"; db_exec($strUpdate,$conn); $tmpSQL="select * from users where Email='" . $username . "' and Password='" . $password . "'"; $rs = db_query($tmpSQL,$conn); ... |
S
|
shoppy author 5/27/2008 |
Sorry Jane, |
J
|
Jane 5/28/2008 |
John, global $conn; $strUpdate = "update TableName set DateTimeOfLogin=Now(), NumbersOfLogin=NumbersOfLogin+1 where UserName='".$_SESSION["UserID"]."'"; db_exec($strUpdate,$conn); |
S
|
shoppy author 5/28/2008 |
John, replace Username with your actual field name where login name is stored. Don't change $_SESSION["UserID"] variable.
|
S
|
shoppy author 5/28/2008 |
I tried to post the whole thing in the Demo account but it is bigger then 5 MB so that didn't work as well. |
J
|
Jane 5/28/2008 |
John, |
S
|
shoppy author 5/28/2008 |
My dear Jane, |
M
|
mickmouser 5/28/2008 |
Hello Again: So after all the comments back and forth, what code do I put where to make the count thing work? The following is already in my "after successful log-in" event. Where do I add the code you provided; so I will be able to see how many are logged in, etc. Thank you, Janice |
J
|
Jane 5/29/2008 |
mickmouser, global $conn; $strUpdate = "update TableName set DateTimeOfLogin=Now() and NumbersOfLogin=NumbersOfLogin+1 where UserName='".$_SESSION["UserID"]."'"; db_exec($strUpdate,$conn); $tmpSQL="select * from users where Email='" . $username . "' and Password='" . $password . "'"; $rs = db_query($tmpSQL,$conn); ...
|
S
|
shoppy author 5/29/2008 |
Hi Jane, |
J
|
Jane 5/29/2008 |
Here is the correct code: global $conn; $strUpdate = "update _klant set DateTimeOfLogin=Now(),NumberOfLogin=NumberOfLogin+1 where KlantID='".$_SESSION["UserID"]."'"; db_exec($strUpdate,$conn); |
S
|
shoppy author 5/29/2008 |
Here is the correct code:
|