Hi Poj,
Thanks for the help. I used your suggestion and now the links do appear on the page.
I seemed to have another problem. When I click the link for page 2, it brings me back to my search page instead of showing me the next two items. I think this might be caused in the subroutine gen_nav_link. At the same time, the code in this subroutine looks ok to me.
Any thoughts on why when I click the Next page or Page 1 links, it brings me back to the search page?
Thanks for your help.