I think the red section would concern
<%
OPTION EXPLICIT
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>show an individual verse</title>
</head>
<body>
<%
'This function checks to see that numerical values are valid
Function ValidateInt(SomeInt)
if IsNumeric(SomeInt) = False or SomeInt = "" then
SomeInt = 1
end if
ValidateInt = SomeInt
End Function
Function Highlight(strText, strFind, strBefore, strAfter)
Dim nPos
Dim nLen
Dim nLenAll
nLen = Len(strFind)
nLenAll = nLen + Len(strBefore) + Len(strAfter) + 1
Highlight = strText
If nLen > 0 And Len(Highlight) > 0 Then
nPos = InStr(1, Highlight, strFind, 1)
Do While nPos > 0
Highlight = Left(Highlight, nPos - 1) & _
strBefore & Mid(Highlight, nPos, nLen) & strAfter &_
Mid(Highlight, nPos + nLen)
nPos = InStr(nPos + nLenAll, Highlight, strFind, 1)
Loop
End If
End Function
'Setting up search variables
Dim Book
Dim Chapter
Dim Verse
Dim myVerses
'Dim TextData
Dim Keyword
Dim Keywordb
Dim Keywordc
Dim Keywordd
Dim Keyworde
Dim Keywordf
Book = ValidateInt(request("Book"))
Chapter = ValidateInt(request("Chapter"))
Verse = request("Verse")
if Verse = "" or IsNumeric(replace(Verse,", ","")) = False then
myVerses = ""
else
myVerses = replace(verse,", ", " OR Verse = ")
myVerses = "AND (Verse = " & myVerses & ")"
end if
Keyword = request("Keyword")
Keywordb = request("Keywordb")
Keywordc = request("Keywordc")
Keywordd = request("Keywordd")
Keyworde = request("Keyworde")
Keywordf = request("Keywordf")
'Setting up my database variables
Dim DSNName
DSNName = "DRIVER=Microsoft Access Driver (*.mdb);DBQ="
DSNName = DSNName & Server.MapPath("kjv.mdb")
DSNName = DSNName & ";PWD=" & "mypass"
Dim Conn
Dim RS
Dim SQL1
'Opening Database connection
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open DSNName
set RS = Server.CreateObject("ADODB.recordset")
'This SQL statement creates a list of books
SQL1 = "Select * FROM Bible WHERE Book = " & Book & " AND Chapter = " & Chapter & " " & myVerses & "ORDER BY Verse ASC"
rs.Open sql1,conn, 1
if not rs.eof then
%>
<%
If Keyword <> "" then
Response.Write "Looking for <b>" & request("Keyword") & "</b> <b>" & request("Keywordb") & "</b> <b>" & request("Keywordc") & "</b> <b>" & request("Keywordd") & "</b> <b>" & request("Keyworde") & "</b> <b>" & request("Keywordf") & "</b>"
End If
%>
<form name="kjbible" action="arrayresp.asp" method="get">
<h2><%=rs("Book_Title")%> <%=RS("Chapter")% ></h2>
<input type="submit" value=" Search " size="100" title="Search everything selected">
<%
Do until RS.eof
Dim strText, strFind
%>
<p><sup><%=RS("Verse")%></sup>
<input type="checkbox" value="<%=RS("id")%>" name="id"><br/>
<%
Response.Write("<textarea name='" & "Keywordh" & RS("id") & "' rows='3' cols='64'>")
strFind=Request("Keyword")
strText=rs("text_data")
'some things taken out to avoid confusion but I like to keep the strText
Response.Write strText
response.write("</textarea>")
rs.movenext
if rs.eof then
exit do
end if
Loop
else
response.write "No verses found"
end if
rs.close
conn.close
'response.write "Verse = " & Verse
'response.write "<br>myVerses = " & myVerses
%>
</form>
</body>
</html>
Martial Law 9/11 Rise of the Police State is now available! Visit our Martial Law movie section for complete info (click here), or order now by clicking the button below or by calling 888-253-3139
http://www.infowars.com/martial_law_911.htm