<% 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 %> <%=pageTitle%> - Knowledge Base Search - Confirm Delete Article <% Server.Execute("inc_style.asp") %> <% Server.Execute("inc_header.asp") %>

Are you SURE you want to delete this KB Article?

Yes, delete this article.
No, return me to the main page.

<% Server.Execute("inc_footer.asp") %> <% ElseIf validateID(aID) = False Then %> <%=pageTitle%> - Knowledge Base Search - Delete an article: Error <% Server.Execute("inc_style.asp") %> <% Server.Execute("inc_header.asp") %>

Sorry, the article ID (aID) you entered is not valid!  Please go back and try again.

<% Server.Execute("inc_footer.asp") %> <% Else %> <%=pageTitle%> - Knowledge Base Search - Delete an article: Error <% Server.Execute("inc_style.asp") %> <% Server.Execute("inc_header.asp") %>

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 %>