Showing page numbers with my current code for recordset navigation
<p>This is what I have for my record set navigation. Is there a way to build off this to show my numbers? example. ( 1  2  3  4 ... Next Last ) so if they were on page 2 it would be ( First Prev 1 2 3 .. Next Last) Thanks in advance. </p>

<pre><code>      &lt;table border="0" align="center"&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;?php if ($pageNum_getDisplay &gt; 0) { // Show if not first page ?&gt;
              &lt;a href="&lt;?php printf("%s?pageNum_getDisplay=%d%s", $currentPage, 0, $queryString_getDisplay); ?&gt;"&gt;First&lt;/a&gt;
              &lt;?php } // Show if not first page ?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php if ($pageNum_getDisplay &gt; 0) { // Show if not first page ?&gt;
              &lt;a href="&lt;?php printf("%s?pageNum_getDisplay=%d%s", $currentPage, max(0, $pageNum_getDisplay - 1), $queryString_getDisplay); ?&gt;"&gt;Previous&lt;/a&gt;
              &lt;?php } // Show if not first page ?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php if ($pageNum_getDisplay &lt; $totalPages_getDisplay) { // Show if not last page ?&gt;
              &lt;a href="&lt;?php printf("%s?pageNum_getDisplay=%d%s", $currentPage, min($totalPages_getDisplay, $pageNum_getDisplay + 1), $queryString_getDisplay); ?&gt;"&gt;Next&lt;/a&gt;
              &lt;?php } // Show if not last page ?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php if ($pageNum_getDisplay &lt; $totalPages_getDisplay) { // Show if not last page ?&gt;
              &lt;a href="&lt;?php printf("%s?pageNum_getDisplay=%d%s", $currentPage, $totalPages_getDisplay, $queryString_getDisplay); ?&gt;"&gt;Last&lt;/a&gt;
              &lt;?php } // Show if not last page ?&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
</code></pre>
