Ok, my way of solving this page (Not writing code here but theory).
1. Page gets the cityname to get results of from intro page.
2. Page queries the database and gets only the name ID's in that city starting with A (unless specified by user using the A, B, C, D links).
3. Page stuffs these ID's into an array.
4. Page counts how many rows in the array, if there are more than say.. 20 rows then mark this result page as overloaded (IE: $overloaded=true; ).
Page see's that $overloaded = true and then executes the following
5. Make another query to DB this time getting Names of the corresponding ID's in the array of rows 0-19 ONLY.
6. Display these results on the page.
7. Find out how many groups of 20 results there are (numRows / 20).
8. Based on the ammount of groups of 20 there are create links something like ./selfpage.php?overflow=1.
9. When you click on these links the page with the above functions in it would then notice the $overflow=1 and say hey, instead of showing 0-19 rows of the array in step 5, show 20-40.
I hope you know what I am talking about lol. Tell me if my logic is.....logical heh.
Thanks, Scipio.