brady123 Posted June 23, 2010 Share Posted June 23, 2010 I'm new here and have tried to find the answer before I started a new thread. Sorry if this has been addressed! I'm running a while loop to generate a dictionary that contains definitions in a MySQL database. It's working fine, but I'd like to have the words begin a second column on the page if my $num variable (that holds the returned amount of rows of the query) reaches 31 or more. For example, I'd like the first 30 words listed in one column, then words 31-60 in another column, and so on. How can this be done? Can you have a new query list words beginning at row 31 of a generated query? Thank you for your help! Quote Link to comment https://forums.phpfreaks.com/topic/205679-loop-in-two-columns-the-second-starting-at-row-xxx/ Share on other sites More sharing options...
wildteen88 Posted June 23, 2010 Share Posted June 23, 2010 This should answer your question http://www.phpfreaks.com/forums/index.php/topic,95426.0.html Quote Link to comment https://forums.phpfreaks.com/topic/205679-loop-in-two-columns-the-second-starting-at-row-xxx/#findComment-1076281 Share on other sites More sharing options...
brady123 Posted June 23, 2010 Author Share Posted June 23, 2010 Ah, ok. Don't know how I missed that. It's too bad I'll have to use a table Thanks for your quick reply and help! Quote Link to comment https://forums.phpfreaks.com/topic/205679-loop-in-two-columns-the-second-starting-at-row-xxx/#findComment-1076283 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.