$_GET , not $_Get . Case sensitive. How are you holding your data? Take a look at http://dev.mysql.com/tech-resources/articles/hierarchical-data.html and see if there is anything that you can use. Nested data like you are using would seem to fit very well into this model. So, for getting a single path from a leaf (no pun intended) is entirely possible in a single statement. No need to have a loop. Richard. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php