<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <%'are we logged in? if session("allow")<>"true" then response.redirect("../login.asp") end if 'setup connection string set cn=server.createobject("ADODB.Connection") cn.open="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("..\db\mccullohreunion.mdb") & ";Persist Security Info=False" set rs=server.createobject("ADODB.Recordset") rs.activeconnection=cn set rs2=server.createobject("ADODB.Recordset") rs2.activeconnection=cn %> Summary Table






McCulloh Families

Summary Table

Click someone's name to go to their page, or click a link next to their name to go directly to that section of their profile.

<% trstyle=0 sql="SELECT * FROM [person] ORDER BY LastName, FirstName, MiddleName, BirthDate" rs.source=sql rs.open do until rs.eof photo2=false bio2=false obituary2=false misc=false gallery=false links=false pid=rs("ID") firstname=replace(rs("FirstName"),"*ap*","'") middlename=replace(rs("MiddleName"),"*ap*","'") lastname=replace(rs("LastName"),"*ap*","'") birthdate=replace(rs("BirthDate"),"*ap*","'") Photo=rs("Image1") Bio=rs("Bio") Obituary=rs("Obituary") MiscText=rs("Misc") MiscURL=rs("MiscURL") if Photo<>"" then photo2=true end if if Bio<>"" then bio2=true end if if Obituary<>"" then obituary2=true end if if MiscText<>"" or MiscURL<>"" then misc=true end if 'are there photos for this person? sql="SELECT count(*) FROM [image] WHERE pID = " & pid set rsCount = cn.execute(sql) photoCount=rsCount(0) if photoCount>0 then gallery=true end if 'are there links for this person? sql="SELECT count(*) FROM [link] WHERE pID = " & pid set rsCount = cn.execute(sql) linkCount=rsCount(0) if linkCount>0 then links=true end if %> <% if trstyle=0 then trstyle=1 else trstyle=0 end if rs.movenext loop rs.close %>
NAME (BIRTH YEAR) PHOTO BIO OBITUARY PHOTO
GALLERY
LINKS MISC
<%=lastname%>, <%=firstname%> <%=middlename%> (<%=birthdate%>) <%if photo2 then%> Photo <%end if%> <%if bio2 then%> Bio <%end if%> <%if obituary2 then%> Obituary <%end if%> <%if gallery then%> Gallery <%end if%> <%if links then%> Links <%end if%> <%if misc then%> Misc <%end if%>


 

Contact Us

powered by geneology engine v0.1
© <%=year(date)%> Brian McCulloh Web Development