<TableWidth = "100%" border = "0" CellPadding = "0" Cellpacing = "0" Cellpacing = "0">
<% dowhilenotrs.eof%>
<tr>
<tdheight = "80"> <imgsrc = "<% = rs (" image ")%>" width = "160" height = "80"> </td>
</tr>
<% i = i + 1
ifi> = maxperpagetheneexitdo
Rs.MovEnext
boucle
%>
</ table>
Les enregistrements sont organisés comme suit:
1
2
3
4
5
Si je veux modifier l'arrangement d'enregistrement pour
123
45
Alors comment changer le code ci-dessus, aidez-moi s'il vous plaît
La copie de code est la suivante:
<TableWidth = "100%" border = "0" CellPadding = "0" Cellpacing = "0" Cellpacing = "0">
<% i = 0
dowhilenotrs.eof
ifimod3 = 0Then%>
<tr>
<% endif%>
<tdheight = "80"> <imgsrc = "<% = rs (" image ")%>" width = "160" height = "80"> </td>
<%
if (i + 1) mod3 = 0Then
%>
</tr>
<% endif%>
<%
i = i + 1
ifi> = maxperpagetheneexitdo
Rs.MovEnext
boucle
%>
</ table>