Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.