RE: threaded comments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Sebastian [mailto:sebastian@xxxxxxxxxxxxxxxxxxx]
> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux