mcky Posted June 15, 2008 Share Posted June 15, 2008 Basically I'd like to create a while loop to make rows in a HTML table. The columns I want to use are from 11-30 (all different names obviously) in table 'stats'. All of them have a value, but if their value is 0, I don't want that column to become a row in the HTML table. Now instead of going through each column individually, is there a way I can use some sort of loop to create the rows using the column numbers instead of name? eg. If column11 = 50, column12 = 30, column 13 = 0, column 14 = 70, the HTML table would look similar to column11column12column14 503070 Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/110299-solved-select-columns-by-number/ Share on other sites More sharing options...
mcky Posted June 15, 2008 Author Share Posted June 15, 2008 Managed to work it out myself. Quote Link to comment https://forums.phpfreaks.com/topic/110299-solved-select-columns-by-number/#findComment-565973 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.