Re: Save mySQL data into a CSV file.

From: Date: Tue, 17 Jun 2003 06:37:02 +0000
Subject: Re: Save mySQL data into a CSV file.
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-28666@lists.php.net to get a copy of this message
On Tuesday 17 June 2003 14:16, Martin E. Koss wrote: > Error found when testing the code below: > Warning: Variable passed to each() is not an array or object in > apache/htdocs/speeddials.php on line 11 > Line 11 is: "while ($record_set_array = each($result_set)) {" > > $result_set = mysql_query($qry) or die(mysql_error()); Because $result_set is a resource id. Refer to the examples in the manual on how to get results from a db. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db ------------------------------------------ /* Good day for overcoming obstacles. Try a steeplechase. */

« previous php.db (#28666) next »