Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Date: Sat, 07 Jan 2012 21:53:04 +0100 From: Luuk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 Newsgroups: comp.lang.php Subject: Re: transfering all MySQL rows to an array References: In-Reply-To: X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: Lines: 16 NNTP-Posting-Host: 2001:980:9089:1:216:76ff:fee1:aa6c X-Trace: 1325969701 news.xs4all.nl 6874 [2001:980:9089:1:216:76ff:fee1:aa6c]:47138 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.php:4270 On 07-01-2012 21:03, bill wrote: > Yes, I know I can do it using a while statement, but is there a PHP > mysql function to move all the data obtained in a query to an array that > can be returned from a user written function in one statement ? > > bill you mean this: http://php.net/manual/en/pdostatement.fetchall.php ? (less than 5 mins of Google) -- Luuk