neilfurry Posted November 8, 2017 Share Posted November 8, 2017 (edited) 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! Edited November 8, 2017 by requinix Quote Link to comment Share on other sites More sharing options...
requinix Posted November 8, 2017 Share Posted November 8, 2017 And your code is...? Quote Link to comment Share on other sites More sharing options...
phpmillion Posted November 8, 2017 Share Posted November 8, 2017 IS it really mandatory to post the same duplicated question over all web forums you can find online? https://forums.digitalpoint.com/threads/array-arangement-using-loop.2823851/#post-19521456 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.