<%@Language = "VBScript"%> <% 'create db connection Set Conn = Server.CreateObject("ADODB.Connection") Conn.Open "Data Source=" & Server.MapPath("db/ivy.mdb") &";Provider=Microsoft.Jet.OLEDB.4.0;" %> <% cutoff = DateAdd("d", -30, date()) SQL = "SELECT * FROM Blog WHERE DateEntered < #" & cutoff & "# ORDER BY DateEntered desc" Set RS = Conn.Execute(SQL) %> Alexandra Ivy - Previous Blog Entries

Return to Home

 

Books

About Alexandra

Latest News

Bonus!

Links

Blog

List of Characters

Email Alexandra

 

 

 

Previous Blog Entries

<%if not RS.Eof then %>
<%do while NOT RS.EOF entry = replace(RS("entry"), "''", "'") entry = replace(entry, "

", "

") topic = replace(RS("topic"), "''", "'") if not isNull(RS("alignment")) then alignment = RS("alignment") else alignment = "" end if if NOT isNull(RS("img")) then imgsrc = RS("img") else imgsrc = "" end if if not isNull(RS("imgsize")) then width = RS("imgsize") else width = "" end if if NOT isNull(RS("caption")) then caption = replace(RS("caption"), "''", "'") else caption = "" end if%>

<%RS.MoveNext Loop%>

<%=RS("DateEntered")%>

<%=topic%>

<% if imgsrc <> "" then%> <% if caption <> "" then%> <% end if%>
<%=caption%>
<%end if%>

<%=entry%>

<%SQL2 = "SELECT * FROM Comments WHERE BlogID = " & RS("BlogID") & " AND approved = 'yes'" Set RS2 = COnn.Execute(SQL2) if not RS2.EOF then%>

Comments:

<%do while NOT RS2.EOF%>

<%=RS2("comments")%>

Posted  by "><%=RS2("firstname")%> <%=RS2("lastname")%> on <%=RS2("dateentered")%>

<%RS2.MoveNext Loop end if RS2.close set RS2 = nothing%>
 
<%else%>

There are no entries.

<%end if%>

NovelTalk

HOME  ||  BOOKS  ||  BIO  ||  NEWS  ||  BONUS!  ||  LINKS  ||  BLOG  ||  CHARACTERS  ||  EMAIL

 

Website property of Deborah Raleigh/Alexandra Ivy.
Copyright ©2007 Deborah Raleigh. All Rights Reserved.
For problems, contact the
webmaster

Designed and Hosted by NovelTalk, LLC

Free web analytics, website statistics Statistics