Re: Trying to make site map

From: Date: Sun, 03 Jan 2010 17:15:20 +0000
Subject: Re: Trying to make site map
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-46763@lists.php.net to get a copy of this message
>It breaks apart when I try to go on the third level. =Sorry, my email client didn't word-wrap.== 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.

« previous php.db (#46763) next »