--- In php_mysql@yahoogroups.com, John Magee <jema...@...> wrote:
>
> 
> 
> 
> On 4/24/09 8:07 AM, "pirate_lenny" <piratele...@...> wrote:
> 
> > I've got a layout that I'd like to make two columns. The two columns would
> > need to be populated by the results of a query.
> > 
> > SOOOOO, using LIMIT 2,4 (for example) won't work, because as the information
> > grows, the limit would need to be changed in the code (I think).
> > 
> > How would I create two columns that would expand and change depending on the
> > number of rows returned?
> > 
> > Jeremy
> Are the two columns different amounts of information or the same information
> you just want presented in columns?  I"m a bit unsure on what you're asking.
> 
> You could write you're 'result loop' so that if the row were odd it went in
> column a and if not in column b - you can set the loop to only run for the
> number of rows returned...but I'm still unclear on what your'e asking
>

I'd like to do this: http://jerauf.com/shopamerica/destinations.php

You can see that it goes alphabetically down one column and then the next.

Jeremy

Reply via email to