Hi guys, i'm having this error...
Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error in UPDATE statement.
/alle_new/modifydata.asp, line 14
below is my codes:
<%
username = Request.Form("username")
password = Request.Form("password")
firstName = Request.Form("first")
lastName = Request.Form("last")
emailName = Request.Form("email")
str = "UPDATE user_details SET username = " & username & ", password = " & password & ", firstName = " & firstName & ", lastName = " & lastName & ", email = " & email & " WHERE ID = " & id & ""
id = Request.QueryString("id")
set conn = server.CreateObject ("ADODB.Connection")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.MapPath ("user_db.mdb")
set rs = server.CreateObject ("ADODB.Recordset")
conn.execute str
rs.Update
set rs=nothing
set conn=nothing
Response.Redirect("testviewusers.asp")
%>
whats wrong with it? please help thanx alot! : o)
Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error in UPDATE statement.
/alle_new/modifydata.asp, line 14
below is my codes:
<%
username = Request.Form("username")
password = Request.Form("password")
firstName = Request.Form("first")
lastName = Request.Form("last")
emailName = Request.Form("email")
str = "UPDATE user_details SET username = " & username & ", password = " & password & ", firstName = " & firstName & ", lastName = " & lastName & ", email = " & email & " WHERE ID = " & id & ""
id = Request.QueryString("id")
set conn = server.CreateObject ("ADODB.Connection")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.MapPath ("user_db.mdb")
set rs = server.CreateObject ("ADODB.Recordset")
conn.execute str
rs.Update
set rs=nothing
set conn=nothing
Response.Redirect("testviewusers.asp")
%>
whats wrong with it? please help thanx alot! : o)