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(
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 Tu
PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 16 June 2003 5:42 PM
To: Martin E. Koss
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Save mySQL data into a CSV file.
$qry = "SELECT * FROM TABLE_NAME";
$result_set = mysql_query($qry) or die(mysql_error());
***this has to be called before any he
ows.com> cc:
Subject: RE: [PHP-DB] Save mySQL data
into a CSV f
John [mailto:[EMAIL PROTECTED]
Sent: 16 June 2003 2:06 PM
To: 'Martin E. Koss'
Subject: RE: [PHP-DB] Save mySQL data into a CSV file.
It's something to do with the header in the html page.
-Original Message-
From: Martin E. Koss [mailto:[EMAIL PROTECTED]
Sent: 16 June 20