Joined: 08 Jun 2007 Posts: 127 Location: United Kingdom
Posted: Mon Sep 22, 2008 5:16 am Spanning two UL's
Hey all, bear with me whilst i try to explain this!
I have two <ul> lists that are to be populated with data from a MySQL database.
The <ul>'s sit side-by-side.
I wish to create a script that will build these so that they are both equal (or one has 1 fewer if the total is an odd number).
So I was thinking of using a COUNT to count the total of entries in the table.
Dividing that value in half and building the two <ul>'s.
However, I'm not sure how to do it! Many thanks in advance :]
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum