here's how you should lay it out
$query = querying what you're looking at
$total_rows = total_rows of your query
plug these variables into the page script
$page_total = $total_rows
configure the other variables if you need but not necessary
include the page function
display the pages with
//Displaying the Pagination
$page_offset = display_pages($current_pageNum, $page_total, $page_show, $page_pages, $current_page, $page_align, $page_extention);
HERE'S THE KEY... when you use the function it returns a number to $page_offset... which is what content to load (like page 1 which is 1 - 10 or page 2 which is 11 - 20).
Now you query for the content. You can't do it before because you didn't have the offset
So now you query for the specific content you want to get:
$query = "SELECT * FROM table WHERE blah ORDER BY blah LIMIT $page_offset, $page_show";
now you display the content
while ($content = mysql_fetch_array($query)) {
}
here's the exact script on one of my other sites
http://www.shirlz.com/food-and-drinks-ct1.htm?p=7