Quote:
Originally Posted by Digma
Looks like a working alternative, have you tried it yourself?
|
I am using a very similar SQL: if you don't want the first post (if you regard the first post as the article and the rest as comments) you can add the condition parentid != 0.
The full SQL would be:
PHP Code:
SELECT postid, username, userid, threadid, pagetext
FROM ro_post
WHERE (threadid = $thread_id) AND (parentid != 0)
ORDER BY postid DESC
LIMIT 5
This is what I use currently.
Anyway, there is no reason why this should not work - after all, programing is just a form of mathematics