Jump to content

Array Arrangement


neilfurry

Recommended Posts

Hi Mate,

 

Im having problem displaying data from database using loop.

 

i need to put all even numbers to the left and odd numbers to the right.

 

so if i have one page it should display 2,1,4,3 instead of 1,2,3,4 and so on..

 

attached is the output i want to come up.

 

Cheers!

 

post-54475-0-75439300-1510108849_thumb.png

Link to comment
Share on other sites

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.