Complicated Query + Pagination Script
问题 Problem 1: Pagination on my script is not working. After 20 entries, it only shows the most recent 20 entries and doesn't split them into different pages. Code is below: Problem 2: I am using the same pagination script for something else and over there it splits correctly but on the next page it shows the same results from page 1. I am using the same script except for the second script the: $query = "SELECT COUNT(*) as num FROM table where id = '$uid' ORDER BY id DESC"; and the SQL for that