I have another thread ongoing about sorting an array, but I have a couple of other things I would like to achieve if anybody can help me:
1) Lets say I have an array of 10 items. I only want to show 5 items on the screen. These 5 items will vary, so it might be items 1-5, or items 2-6 or items 4-8 etc. To make it easier to understand, think of a league table. Now I only want to show the two records above, and two records below based on my team of choice:
Pos 3: Team 1
Pos 4: Team 2
Pos 5: My Team
Pos 6: Team 4
Pos 7: Team 5
(Notice how positions 1-2 and 8-10 are not shown)
2) I need to echo the name of each key for the positions in the table. So lets say my array is:
Sorry if it's a bit of a mouth full, but any help is greatly apprecfiated!
Many thanks, :-)
You could set up a combobox/textbox that asks for what starting rank you want, and another for how many they want listed.
|All times are GMT. The time now is 12:22 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0