<%=smNoQuestions%>
<% Else With rs Do While not .EOF %> <%=HighLight(.Fields("Category"))%> <% PaintQuestions .Fields("Category") .movenext Loop End With End If Set rs = Nothing Sub PaintQuestions (Category) Dim rst Dim strSQL strSQL = "SELECT ID, Question FROM FAQ WHERE Category = " & Chr(34) & Category & Chr(34) & " AND LangID=" & iDefLangID & " ORDER BY OrderShown" Set rst = conDB.Execute(strSQL) If IsRSEmpty(rst) Then %><%=smNoQuestions%>
<% Else Response.Write "" With rst Do While not .EOF %> <% .movenext Loop Response.Write "" End With End If Set rst = Nothing End Sub Response.Write "
<%=smNoQuestions%>
<% Else Response.Write "" With rs Do While not .EOF %> ">" End With End If Set rs = Nothing %><%=HighLight(.Fields("Question"))%>
<% .movenext Loop Response.Write "<%=HighLight(.Fields("Answer"))%>