Results 1 to 2 of 2

Thread: Updating records in the table

  1. #1
    Join Date
    Jan 2003
    Posts
    30

    Updating records in the table

    Currently i have a table called users. I wish to allow users to submit their ratings and together with the timestamp. Initially, it works with just submitting the rating alone. However when i try to submit the rating and the timestamp together, the system returns syntax error in the UPDATE statement. Can anyone help me take a look?

    <%
    Rate=Request.QueryString("Rating")
    Session("rate")=Rate
    Session("time")=Now()
    Response.write(Session("time"))

    SQLquery = "UPDATE users " &_
    "SET (Ratings,DateTime) = ('"&Session("rate")&"','"&Session("time")&"')" &_
    "where user_name ='" & Session("name") & "'"


    conn.Execute(SQLquery)
    %>

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •