ramone_johnny Posted May 2, 2013 Share Posted May 2, 2013 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) Quote Link to comment https://forums.phpfreaks.com/topic/277534-display-recordset-in-3-columns/ Share on other sites More sharing options...
Barand Posted May 2, 2013 Share Posted May 2, 2013 And your question is what? Where are you stuck? Quote Link to comment https://forums.phpfreaks.com/topic/277534-display-recordset-in-3-columns/#findComment-1427730 Share on other sites More sharing options...
jcbones Posted May 2, 2013 Share Posted May 2, 2013 This is PHP not ASP! Blah@!!! Quote Link to comment https://forums.phpfreaks.com/topic/277534-display-recordset-in-3-columns/#findComment-1427850 Share on other sites More sharing options...
Barand Posted May 2, 2013 Share Posted May 2, 2013 This is PHP not ASP! Blah@!!! I get the impression he wants one of us to rewrite it for him in PHP (for free) Quote Link to comment https://forums.phpfreaks.com/topic/277534-display-recordset-in-3-columns/#findComment-1427853 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.