-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdateSupplier.asp
38 lines (25 loc) · 1.09 KB
/
updateSupplier.asp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<%
if session("empid") = "" then
response.redirect("sessionTimedOut.asp")
end if
sid = request.querystring("sid")
attribute = request.querystring("attribute")
changedValue = request.querystring("changedValue")
response.write sid & attribute & changedValue
Dim Connection
Dim Recordset
Dim RecordsetS
Dim SQL
Set Connection = Server.CreateObject("ADODB.Connection")
Set Recordset = Server.CreateObject("ADODB.Recordset")
Connection.Open "DSN=csidsn"
SQL = ""
SQL = "update supplier set " & attribute & " = '" & changedValue & "' where sid="&sid&";"
Recordset.Open SQL,Connection
'Connection.Execute SQL,recaffected
response.write "0"
Set RecordsetS=nothing
Set Recordset=nothing
Set Connection=nothing
%>