ProperBo
11-15-2003, 07:00 AM
Hi all,
trying to figure out how to show a new image next to a record in the DB that is less than 7 days old.
It's placed in a repeating region, and pic shows for all records, not just the new ones :(
<%
DIM strRecordDate, strNew
strRecordDate = rsArticles.Fields.Item("DateAdded").value
strNew = response.write ("<img src='newPost.gif'></img>")
IF strRecordDate <= Date()-7 THEN
response.write (strNew)
ELSE
END IF
%>
any pointers would be great
TIA
trying to figure out how to show a new image next to a record in the DB that is less than 7 days old.
It's placed in a repeating region, and pic shows for all records, not just the new ones :(
<%
DIM strRecordDate, strNew
strRecordDate = rsArticles.Fields.Item("DateAdded").value
strNew = response.write ("<img src='newPost.gif'></img>")
IF strRecordDate <= Date()-7 THEN
response.write (strNew)
ELSE
END IF
%>
any pointers would be great
TIA