> -----Original Message-----
> From: Sebastian [mailto:[EMAIL PROTECTED]
> 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

Reply via email to