John,
I did not want to reply having not tested it thoroughly. I now have.
Your suggested fix (as usual) worked.
I am finding the uses of this endless.
I wanted to create a paginated news page. A combination of PHP, and this has made it possible.
I have two pages.
news.php which contains a div called' NewsDiv
getnews.php which uses PHP to fetch all the news.
With some simple onclicks, getnews.php gets the news and puts it in the div on news.php
Prior to this conversation/chat, the pagination system I was using was one off dynamicdrive in fact: http://www.dynamicdrive.com/dynamici...nate/index.htm
It was extremely complicated, really hard to integrate with PHP etc etc.
I was just curious as to the downsides of pretty much basing my website around your function. Is it really slow, or inefficient or something. Surely there must be a negative?
Thanks

