% If Request.QueryString("step") = "2" AND Session("adminLoggedIn") = True Then adoCon.Open cString Set rsDeleteArticle = Server.CreateObject("ADODB.RecordSet") deleteSQL = "DELETE * FROM tbl_KbIndex WHERE ID=" & aID rsDeleteArticle.Open deleteSQL, adoCon 'rsDeleteArticle.Close 'Set rsDeleteArticle = Nothing Response.Redirect("search.asp?mode=" & pageMode & "&searchQ=" & searchQ) ElseIf validateID(aID) = True AND Session("adminLoggedIn") = True Then %>
Are you SURE you want to delete this KB Article?
Yes, delete this article.
No, return me to the main page.
Sorry, the article ID (aID) you entered is not valid! Please go back and try again.
<% Server.Execute("inc_footer.asp") %> <% Else %>Sorry, you are not authorized to access this page. You may go back and search the Knowledge Base.
<% Server.Execute("inc_footer.asp") %> <% End If %>