Well, it worked in a way 🙂. first page shows latest 10 Posts. and if next is pressed it shows 1 older post at the bottom, ex.
1
2
3
4
5
6
7
8
9
10 ( this is whats shows)
i press next button,
2
3
4
5
6
7
8
9
10
11 ( now this is what shows)
i press next button
3
4
5
6
7
8
9
10
11
12 ( now this)
press next
4
5
6
7
8
9
10
11
12
13
Now i have pressed it 3 times, so i should be on page 3, "/index.php?page=3" witch it shows, so i cant press it any more because im on end page. (i know this cause i wrote 30 posts = 3 pages)
so for each "next" pressed, one older post shows,
uhm $total_pages = ceil(asdasd);
What does ceil do?