CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Last Login Date Not Working CC Studio

Print topic Send  topic

Author Message
Harry Wheat
Posted: 06/05/2002, 8:11 PM

I cannot get the last Login date to store in the database. Can someone help
me. The Code I use is below.
Thanks
Dim Connection
If Login_DoLogin_OnClick = True Then
Set Connection = New clsDBmembers
Connection.Open
Connection.Execute("UPDATE users SET date_last_login=#" & Now() & "#,
last_login_ip=" & CCToSQL(Request.ServerVariables("REMOTE_ADDR"),"Text") & "
WHERE user_id=" & CCToSQL(CCGetUserID,"Integer"))
' Connection.Execute("UPDATE users SET last_login_date=#" & Now() & "#,
last_login_ip=" & CCToSQL(Request.ServerVariables("REMOTE_ADDR"),"Text") & "
WHERE user_id=" & CCToSQL(CCGetUserID,"Integer"))
Connection.Close
Set Connection = Nothing

Chris Seymour
Posted: 06/06/2002, 4:18 AM

HI Harry,

Try this

Connection.Execute("UPDATE users SET date_last_login=#" & Now() & "#,
last_login_ip='" & CCToSQL(Request.ServerVariables("REMOTE_ADDR"),"Text") & "'
WHERE user_id=" & CCToSQL(CCGetUserID,"Integer"))

Just a thought.

Cheers.
Harry Wheat
Posted: 06/06/2002, 5:48 AM

Fixed the Problem. There was a simple Misspell in the Field Name in the
Common.Asp File.

Harry

"Harry Wheat" <sales@ifixpcs.com> wrote in message
news:admjsg$imd$1@news.codecharge.com...
> I cannot get the last Login date to store in the database. Can someone
help
> me. The Code I use is below.
> Thanks
> Dim Connection
> If Login_DoLogin_OnClick = True Then
> Set Connection = New clsDBmembers
> Connection.Open
> Connection.Execute("UPDATE users SET date_last_login=#" & Now() & "#,
> last_login_ip=" & CCToSQL(Request.ServerVariables("REMOTE_ADDR"),"Text") &
"
> WHERE user_id=" & CCToSQL(CCGetUserID,"Integer"))
> ' Connection.Execute("UPDATE users SET last_login_date=#" & Now() & "#,
> last_login_ip=" & CCToSQL(Request.ServerVariables("REMOTE_ADDR"),"Text") &
"
> WHERE user_id=" & CCToSQL(CCGetUserID,"Integer"))
> Connection.Close
> Set Connection = Nothing
>
>


   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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