Your question is being too vague and it already answers itself.
No hint as for what is the problem here, and you said "...could you please help me in achieving this problem ..." so as you can see, you achieved the problem, now we must also achieve it, in order to be able to help you achieve the solution.
some hints:
- did think about the structure of Perlmonks, and the node_id and lastnode_id params?
- do you think you can arrange all the links in a dispatch table? or they must grow up and should come up from the database? which also can be made into a dispatch table..
- did you do some code you can show us here?? using <code> tags
He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.
Chady | http://chady.net/