- Joined
- Jul 4, 2008
- Messages
- 1
- Reaction score
- 0
Hello,
I have a script on my homepage which displays news, however when viewed using Internet Explorer (not firefox) an error icon is shown which states an object is required on line 56 char 6.
I have very limited asp knowledge, and was wondering if anyone could give me some guidance.
Many thanks:
Line 56 is 'else' shown in red here
I have a script on my homepage which displays news, however when viewed using Internet Explorer (not firefox) an error icon is shown which states an object is required on line 56 char 6.
I have very limited asp knowledge, and was wondering if anyone could give me some guidance.
Many thanks:
Code:
<ul class="colon_list" ><%
dim counter2
counter2 = 8
dim max
max = Cint(cnt.Fields.Item(0))
do until counter2 = max or rs.EOF
if DateDiff("d" , rs.Fields.Item(3),"01/10/2006")<0 then
%>
<li><a href="show_news.asp?language_news=<%= rs.Fields.Item(0) %>"><%= rs.Fields.Item(3) & " - " & replace(rs.Fields.Item(1), "&", "&" ) %></a></li>
<%
[COLOR="Red"]else[/COLOR]
%>
<li><a href="show_news.asp?id=<%= rs.Fields.Item(0) %>"><%= rs.Fields.Item(3) & " - " & replace(rs.Fields.Item(1), "&", "&" ) %></a></li>
<%
end if
counter2 = counter2 + 1
rs.MoveNext
loop
%></ul>
Line 56 is 'else' shown in red here