Altså for hver gang der er 3 records skal der laves <tr><td> </td></tr> i denne td skal der så være en tabel med 3 rækker og 3 kolonner en der kan komme med et bud på en løsning til det ?
<table width="100%" border="1" cellspacing="0" cellpadding="0"> <% fra_tabel = "Produkt 1,Produkt 2,Produkt 3,Billede 1,Billede 2,Billede 3,Vejl. P 1,Vejl. P 2,Vejl. P 3" arr = split(fra_tabel,",") for b = 0 to Ubound(arr) j = j + 1 if j = 1 then response.Write("<tr>"&vbcrlf) end if %> <td><%=arr(b)%></td> <% if j = 3 then j = 0 response.Write("</tr>"&vbcrlf) end if next %> </table>
fra_tabel = "Produkt 1,Billede 1,Vejl. P 1,Produkt 2,Billede 2,Vejl. P 2,Produkt 3,Billede 3,Vejl. P 3" arr = split(fra_tabel,",") for b = 0 to Ubound(arr) j = j + 1 if j = 1 then rk_1 = rk_1 & "," & arr(b) if j = 2 then rk_2 = rk_2 & "," & arr(b) if j = 3 then rk_3 = rk_3 & "," & arr(b) if j = 3 then j = 0 end if next %>
<table width="100%" border="1" cellspacing="0" cellpadding="0"> <tr> <% arr_rk_1 = split(right(rk_1,len(rk_1)-1),",") for b = 0 to Ubound(arr_rk_1) %> <td><%=arr_rk_1(b)%></td> <% next %> </tr> <tr> <% arr_rk_2 = split(right(rk_2,len(rk_2)-1),",") for b = 0 to Ubound(arr_rk_2) %> <td><%=arr_rk_2(b)%></td> <% next %> </tr> <tr> <% arr_rk_3 = split(right(rk_3,len(rk_3)-1),",") for b = 0 to Ubound(arr_rk_3) %> <td><%=arr_rk_3(b)%></td> <% next %> </tr> </table>
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.