<% action = request.querystring("action") if action = "Delete" then sdl_id = request.querystring("sdl_id") qryDel = "delete from sdl where sdl_id = "& sdl_id &"" set rsDel = conn.execute(qryDel) set rsDel = nothing end if %>
Edit Delete Detail
<% 'qry = "select Month(news_record) from news" 'set rc = conn.execute(qry) 'do while not rc.eof 'response.write rc(0) & "
" 'rc.movenext 'loop 'set rc = nothing qryNews = "select * from sdl order by sdl_id desc" set rsRef = conn.execute(qryNews) response.write "Found : " & rsRef.recordcount & " Item(s)" if not rsRef.eof then if request("no") ="" then pageno =1 else pageno=request("no") end if total = rsRef.recordcount pagesize= 10 totalpage = total\pagesize if (total mod pagesize) <> "0" then totalpage= totalpage+1 else totalpage = 0 end if rsRef.Move pagesize*(pageno-1) a=1 if trim(pageno) <> trim(totalpage) then endrecord = pagesize else endrecord=(total mod pagesize) end if For a=1 to endrecord %> <% rsRef.movenext next set rsRef = nothing end if %>
Specification Download
SDL ID
 SDL Title
  File
  Band
Function
 <%=rsRef("sdl_id")%>
 <%=rsRef("sdl_name")%>
  <% qryGrp = "select * from bands where band_id = "& rsRef("band_id") &"" set rsGrp = conn.execute(qryGrp) if not rsGrp.eof then response.write rsGrp("band_name") end if %>
&action=Delete');return document.MM_returnValue">

<%For b=1 to totalpage%> <%=b%> <%Next%>