discusmania
IS-IT--Management
Hello...
1. I encounter error when i run this code. The error is:
error '80020009'
Exception occurred.
/hr/dbs/news.asp, line 28
2. I want the program to get the number of records in mytable then pass the value to a variable. How to do that?
Can someone please review my code
<% dim i
'dim reccount
'reccount=SELECT count(*) from news
response.write reccount
for i=0 to 5
if objRec("date"=(date) then %>
<div align="left">
<table border="0" width="80%" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
<tr>
<td width="100%" bgcolor="#FF9900"><center><font face="Verdana" size="2" color="#333399"><b><%=objRec("headLine"%></b></center></font></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFF66"><font face="Verdana" size="2"><div align="justify"><%=objRec("newsBody"%></div></font></td>
</tr>
<!-- <tr>
<td width="100%"><font color="#800000" face="Arial" size="2">Updated by :<a href="mailto:<%=objRec("mail"%>"><%=objRec("writer"%></a><br>
</font><font color="#800000" size="1" face="Arial">
Date :<%=objRec("date"%></font>
</font>
</td>
</tr> -->
</table>
</div>
<p>
<% end if
objRec.MoveNext
next%>