Hi,
I am wondering if code below is right. Is there any unnecessary line?
Thanks
<%
on error resume next
ad=request.form("name")
Set RcSet = Server.CreateObject("ADODB.RecordSet")
sql = "Insert Into veriler (name) Values ('"&name&"')" 'ADD
sql = "Update veriler Set name='"&name&"' Where id=1" 'UPDATE
sql = "Delete From veriler Where id=1" 'DELETE
RcSet.open sql, conn, 1, 3
RcSet.execute (sql)
if err.number=0 then
Response.write "Added."
else
response.write "Error"
end if
RcSet.close
Set RcSet = nothing
conn.close
Set conn=nothing
%>