thanks man it works.... can i have another question ?? how can i set the limit to that for up to 3 display only




for example i have this in my database

1
2
3
4
5
6
7
8
9
10


and my selection would be number 5

i wanted to output 4,3,2 only cause i have to limit it to output 3 entries per selection only?