CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 CCS:update user record with last login date (ASP)

Print topic Send  topic

Author Message
Ben Steggink
Posted: 07/30/2002, 1:06 PM

I'm using ASP and I want to update the user record with today's date whenever he performs a login action.
I added the following code within the login program.
The record will never be updated. I even tried to select a fixed record number and another field to be updated.
What do I wrong? Is it the wrong place to add the custom code?
Can someone help me?

Function Page_BeforeUnload() 'Page_BeforeUnload @1-A9F5B785

'Custom Code @14-73254650
' -------------------------
Dim DBICTee
Set DBICTee = New clsDBICTee
CCExecSQL "UPDATE leden SET last_login_date=now() WHERE leden.LidID = CCGetUserID", DBICTee, true
' -------------------------
'End Custom Code

End Function 'Close Page_BeforeUnload @1-54C34B28
Alex Alexapolsky
Posted: 07/31/2002, 4:37 AM

CCGetUserID is inside a string and is not treated as a function
"UPDATE leden SET last_login_date=now() WHERE leden.LidID = CCGetUserID"
should be
"UPDATE leden SET last_login_date=now() WHERE leden.LidID = " & CCGetUserID"

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.