Script Hapus di ASP

Script Hapus di ASP

<%
Dim adoCon
Dim rsDeleteEntry
Dim strSQL

Dim Waktu1
Waktu1=Request.Form(“Waktu”)

Set adoCon = Server.CreateObject(“ADODB.Connection”)
adoCon.Open “DRIVER={Microsoft Access Driver (*.mdb)};uid=;pwd=password; DBQ=” & Server.MapPath(“dunia_it_armansyah.mdb”)
Set rsDeleteEntry = Server.CreateObject(“ADODB.Recordset”)

StrSql = “Select * from Tabel_tabelan Where Tabel_tabelan.waktunyo = ‘” & Waktu1 & “‘”

rsDeleteEntry.LockType = 3
rsDeleteEntry.Open strSQL, adoCon
rsDeleteEntry.Delete
rsDeleteEntry.Close
Set rsDeleteEntry = Nothing
Set adoCon = Nothing

Response.Redirect “okebos.asp”
%>

Categories: Classic ASP | Tinggalkan komentar

Navigasi pos

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

Blog di WordPress.com.

%d blogger menyukai ini: