Registros em 2 colunas
Galera seguinte, estou com um problema em apresentar os os dados em 2 colunas, o que nao acontece hoje.
Esta tudo funcionando, porem fica 1 registro por linha, segue parte codigo para vcs darem uma olhada.
<%
MySQL = "SELECT * FROM news WHERE home='Sim' ORDER BY ordem ASC"
set rsnot=Server.CreateObject("ADODB.Recordset")
rsnot.open MySQL,Conexao
If Not rsnot.EOF Then
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" class="style13"> </td>
</tr>
<tr>
<td colspan="3" class="style13">NOTICIAS</td>
</tr>
<%While Not rsnot.EOF
IDCAT=rsnot("ID")
%>
<tr>
<td colspan="3" class="style1"><%=rsnot("newstitulo")%></td>
</tr>
<%if rsnot("ativar_foto")="Sim" and Not rsnot("foto")="" then%>
<tr>
<td class="style8"><img src="imagem/<%=rsnot("foto")%>" width="91" height="77"></td>
<td valign="top" class="index-l"> </td>
<td valign="top" class="style8"><div align="justify"><%=rsnot("subtitulo")%><br /></div>
<a href="newscat.asp?ID=<%=IDCAT%>&titulo=NOTÍCIAS&dep=poli" class="menu2">Leia +</a>
</td>
</tr>
<%end if%>
<tr>
<td colspan="3" class="style8"><%if rsnot("ativar_foto")="Nao" or rsnot("foto")="" then%><div align="justify"><%=rsnot("subtitulo")%></div><%end if%></td>
</tr>
<tr>
<td class="style8"> </td>
</tr>
<%rsnot.MoveNext
Wend%>
</table></td>
</tr>
</table>
<%
End If
rsnot.Close
Set rsnot=Nothing
%>
vlw a todos
Discussão (2)
Carregando comentários...