Re: Trying to make site map

[email protected] ("Brian Smither")
Newsgroups php.db
Message-ID <[email protected]>
>It breaks apart when I try to go on the third level.

On the second iteration of $secpageArray, it fetches Row4 from the database. Because there is no Page_Above that equals 4 (that is, no child of Page 4 in your map), the level 3 query might be coming back as False (no records returned), which might be triggering the die() function. This might be the cause were it not for the fact that...

You are using the variable $result as the reference object for all three queries. Once the third level uses $result, you've lost the reference to the second level query's recordset.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.