-
Notifications
You must be signed in to change notification settings - Fork 0
/
PeopleT.asp
31 lines (26 loc) · 863 Bytes
/
PeopleT.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
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<%
'VT baglantisinin yapimasi:
Set Baglantim = CreateObject("ADODB.Connection")
'VT'nin acilmasi:
Baglantim.Open ("DRIVER={Microsoft Access Driver (*.mdb)};DBQ="& Server.MapPath("BenimVT.mdb"))
'Tablo nesnesinin olusturulmasi:
Set Tablom = server. CreateObject("ADODB.Recordset")
'Tablonun acilmasi:
Tablom.Open "Ptable", Baglantim, 1, 3
'Tabloya veri eklemeye baslangic:
Tablom.AddNew
'Tablodaki alanlara veri aktarma
Tablom("name") = Request("name")
Tablom("Date") = request("Now")
Tablom("Comment") = request("Comment")
'aktarma islemi birince tablonun guncellenmesi:
Tablom.Update
'tablonun kapatilmasi:
Tablom.close
set Tablom= Nothing
'baglantinin kesilmesi:
Baglantim.close
set Baglantim= Nothing
response.redirect "people1.asp"
%>