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 ";
__________________
Listen to the ducky: "This is awesome!!!"
|