Re: {SOLVED] mysqli & nested queries - maybe I'm rusty...

From: Date: Tue, 02 Apr 2013 14:19:13 +0000
Subject: Re: {SOLVED] mysqli & nested queries - maybe I'm rusty...
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-320746@lists.php.net to get a copy of this message
Jay Blanchard wrote:
[snip] ...stuff... [/snip] I rewrote everything so that I could get the data in a single query and then performed some manipulation with PHP to get the proper output. No need to call multiple queries in this case, just had to sleep on it.
In Firebird, CTE queries are great for this type of problem. Just having a single result set and formatting the results based on a 'level' field makes things very flexible and you just stream the one set of results. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

« previous php.general (#320746) next »