RE: [PHP-DB] Save mySQL data into a CSV file.

From: Date: Tue, 17 Jun 2003 06:35:44 +0000
Subject: RE: [PHP-DB] Save mySQL data into a CSV file.
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-28664@lists.php.net to get a copy of this message
do a var_dump($result_set) to see what $result_set contains (if it's actually and array. (did you implement the code given as is? if not AND you have put line-11 in a function and $result_set as a global variable then you need to define $result_set as a global inside the function.) ramil On Tue, 2003-06-17 at 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)) {" > > What did I do wrong? > > Thanks > Martin > > -----Original Message-----

« previous php.db (#28664) next »