Code:
<%
Dim id
set id = opin("idopiniao")
Dim lastarticle
lastarticle = ""
do while not opin.EOF
If opin("idopiniao") <> lastarticle Then %>
<table width=450 border=1>
<tr>
<td bgcolor=#3399cc width=400>
<font color="#dbf1ff"><b><%=opin("titulo")%></b></font>
</td>
<td bgcolor=#3399cc>
<font size=2><a href="comt.asp?ID=<%=id%>" class="link">Comentar</a></font>
</td>
<br>
</tr>
<tr>
<td bgcolor=#dbf1ff colspan=2>
<font color="#3399cc"><!--#include file="splitopin.asp" --></font>
</td>
</tr>
</table>
<% End If %>
<table border=1>
<% If opin("idcoment") <> "" Then %>
<tr>
<td width=440>
<font color=#3399cc> <i><!--#include file="splitcom.asp" --></i></font>
</td>
</tr>
<% Else %>
<tr>
<td bgcolor=#3399cc width=383>
<font color="#dbf1ff"><b><%=opin("titulo")%></b></font>
</td>
<td bgcolor=#3399cc>
<font size=2><a href="comt.asp?ID=<%=id%>" class="link">Comentar</a></font>
</td>
<br>
</tr>
<tr>
<td colspan=2 bgcolor=#dbf1ff>
<font color="#3399cc"><%=opin("opiniao")%></font>
</td>
</tr>
<tr>
<td colspan=2>
<font color="red"> <i>Sem comentários</i><br></font>
</td>
</tr>
<% End If %>
</table>
<% lastarticle = opin("idopiniao")
opin.MoveNext
loop
%>
I'm asking people to send opinions on some issues to my site, and then other users can comment those opinions, the code above is from the page were i display all the opinions and comments, it's all working fine, but there's one thing that i just can't understand, on these 2 lines here
Code:
<font size=2><a href="comt.asp?ID=<%=id%>" class="link">Comentar</a></font>
view the problem online in
Thanks in advance
Herminio, Portugal