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

2003-06-16 Thread Jason Wong
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(

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

2003-06-16 Thread Ramil G. Sagum
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

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

2003-06-16 Thread Martin E. Koss
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

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

2003-06-16 Thread jeffrey_n_Dyke
ows.com> cc: Subject: RE: [PHP-DB] Save mySQL data into a CSV f

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

2003-06-16 Thread Martin E. Koss
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