Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Just looking at the code, I see one strange thing; the query:
Code:
$query = " SELECT id, title, text FROM posts " . " LIMIT $offset, $postperpage " . " ORDER BY id DESC ";
The LIMIT x, y is a shortcut, but I believe it should by LIMIT {how many}, {from position}.
Which would convert to
Code:
$query = " SELECT id, title, text FROM posts " . " LIMIT $postperpage, $offset " . " ORDER BY id DESC ";
Or, with the full SQL syntax:
Code:
$query = " SELECT id, title, text FROM posts " . " LIMIT $postperpage OFFSET $offset " . " ORDER BY id DESC ";
__________________
Only a biker knows why a dog sticks his head out the window.
|