Hello, This is in reference to the Page Numbering tutorial by PHPFreaks.
In this tutorial the "select * from pages limit.." query customized for my needs actually contains a "where site = '".$id."'" clause. This $id changes depending upon a value that the user will select from a drop down on my page and thereafter the page will get refreshed. Hence the number of records returned would also be different. But the mysql_result() function that i have used from the tutorial continuously returns the same number of records while actually the number of records varies according to $id. [lets say mysql_result gives 31 each time though the query filters only 16 or 10 records]
As a result it shows 1 2 3 4 5 6 7 page links each time even though there are not enough records to fill 7 pages ...
Please help ...how should I alter the query....