RE: [PHP] threaded comments
| From: | Kim Madsen | Date: | Fri, 08 Apr 2005 09:16:15 +0000 |
| Subject: | RE: [PHP] threaded comments | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-212627@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Sebastian [mailto:sebastian@broadbandgaming.net]
> Sent: Thursday, April 07, 2005 10:17 PM
> i want the rows to know the id directly above itself
> so for example, row 5 (id 28) will some how know its parentid (16) is not
> directly above it and is not accociated with the result its above (24)
Have a "ref" in the database, it refereres to the parent. If the ref is NULL, it´s the
start thread
> i want to 'highlight' a row when the parent it belongs to is directly
> above
> and do nothing if its not.
Set $last_id = $id; in the end of the while and I the start of the while set: if($last_id == $ref)
// highlight the line
Is that what You are looking for?
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper