Posted on: 09/28/08 06:46pm
By: Anonymous (ismael)
Hi,
how can i identify the first comment in a story? I want to feature it.
Thank you,
ismael
Re: The first comment
Posted on: 09/29/08 03:16am
By: Dirk
I don't think you can get that information without modifications to the core code.
The first comment to a story is the comment with a parent id (pid) of 0 that has the lowest comment id (cid). I.e. all the top-level comments to a story have a pid = 0. Since the cid is an auto_increment field, the lowest cid should be the first comment.
bye, Dirk