Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1616 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Alternating Table Columns via while() Loop

Thread title: Alternating Table Columns via while() Loop
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
03-30-2005, 03:12 AM
#1
Jon Mooring is offline Jon Mooring
Status: I'm new around here
Join date: Jan 2005
Location:
Expertise:
Software:
 
Posts: 14
iTrader: 0 / 0%
 

Jon Mooring is on a distinguished road

  Old  Alternating Table Columns via while() Loop

I am writing a script that displays items for sale in each category. Obviously, the items are gathered from the database and put into a variable via a while() loop. What I want to do is put them into two seperate variables. One for each of two table columns. I want every other item to alternate. Like:

item 1 -> column 1
item 2 -> column 2
item 3 -> column 1
etc, etc ,etc...

How would I go about doing this? Thanks in advance.

     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed