A simple demonstration of the generatePageNav function.

To generate this page, the following code was used:
<style>
.current{
	background:#CCCCCC;
}
ul#pages li{
	display:inline;
	padding:3px 6px 3px 6px;
	border:1px solid #000000;
	margin:2px;
}
</style>
<php $page = explode("?page/",$_SERVER["REQUEST_URI"]); $page = $page[1]; echo generatePageNav($page, 100); ?>

Obviously, with better CSS this will look alot nicer...