Re: Trying to make site map
| From: | Brian Smither | Date: | Sun, 03 Jan 2010 17:07:19 +0000 |
| Subject: | Re: Trying to make site map | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46762@lists.php.net to get a copy of this message | ||
>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.