Re: Reuse MySQL prepared statement
| From: | Richard Heyes | Date: | Mon, 29 Sep 2008 15:19:10 +0000 |
| Subject: | Re: Reuse MySQL prepared statement | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281100@lists.php.net to get a copy of this message | ||
> I am trying to use a prepared MySQL statement after retrieving the
> results from a previous query (it's for a multi-level menu). The first
> query works fine, but the second query does not.
Use a tree structure (I assume it's a tree type menu that has already
been written and save yourself the hassle. The PEAR HTML_TreeMenu code
can Create a tree structure from a Tree object (my own tree class at
phpguru.org).
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.phpguru.org/RGraph