Jump to content

Loop in two columns, the second starting at row XXX


brady123

Recommended Posts

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!

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.