Jump to content

Display recordset in 3 columns


Recommended Posts

Hi guys,

I'm hoping someone can help out with this one.

 

I need to convert the following code so that the results are displayed in 3 columns.

 

Here's the code.

<tr>
                    <td    colspan="5"> <%
                    strSQL = "SELECT blah FROM blah ORDER BY blah"
                    RS_open
                    ary = rstDBEdit.getrows%> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="style2">
                        <%for i=0 to 9%>
                        <tr>
                          <td width="3%" height="18"> </td>
                          <td> </td>
                          <td width="32%"> <input type="checkbox" name="share_category"    value="<%=ary(0,i)%>">
                            <span class="style1"> <%=ary(0,i)%></span></td>
                          <td width="35%"> <input type="checkbox" name="share_category"    value="<%=ary(0,i+10)%>">
                            <span class="style1"><%=ary(0,i+10)%></span></td>
                          <td width="30%"> <input type="checkbox" name="share_category"    value="<%=ary(0,i+20)%>">
                            <span class="style1"><%=ary(0,i+20)%></span></td>
                        </tr>
                        <%next%>
                      </table>
                      <%RS_close%> </td>
                  </tr>


The results should be displayed as on this page...

 

http://www.housemates.com.au/placeanad/share_ads/placeanad_create.asp

 

(Underneath Share Features and Preferences)

Link to comment
https://forums.phpfreaks.com/topic/277534-display-recordset-in-3-columns/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.