I'm not an ASP developer, but I've been given a (seemingly easy) task to complete.
The code below is going to be put into an iframe. Its 'what happened on this day' type thing, showing birthdays, deaths, etc. So I need to only show the records with todays date, and only show 3-4 entries at a time.
What is the best way to go about doing this?
The code below is going to be put into an iframe. Its 'what happened on this day' type thing, showing birthdays, deaths, etc. So I need to only show the records with todays date, and only show 3-4 entries at a time.
What is the best way to go about doing this?
Code:
<%
While Not Recordset1.EOF
%>
<p><b><%=(Recordset1.Fields.Item("eventdate").Value)%>/<%=(Recordset1.Fields.Item("eventmonth").Value)%>/<%=(Recordset1.Fields.Item("eventyear").Value)%>:</b> <%=(Recordset1.Fields.Item("eventtitle").Value)%><br>
<%=(Recordset1.Fields.Item("eventprecis").Value)%><br>
(<%=(Recordset1.Fields.Item("eventcategory").Value)%>)<br>
<%=(Recordset1.Fields.Item("eventdetail").Value)%>
<%
Recordset1.MoveNext
Wend
%>