Jump to content
neilfurry

Array Arrangement

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

Edited by requinix

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

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.