Re: Reuse MySQL prepared statement
| From: | Richard Heyes | Date: | Mon, 29 Sep 2008 18:25:41 +0000 |
| Subject: | Re: Reuse MySQL prepared statement | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281126@lists.php.net to get a copy of this message | ||
> I would recommend using using a preorder tree traversal for storing
> the data. It is a little different at first, but once you get the
> idea it is pretty slick to work with. The main advantage is to build
> the tree structure you only need one query as opposed to a recursive
> algorithm.
This Tree thang doesn't use recursion, and only one query.
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.phpguru.org/RGraph