RE: [PHP] FW: write to file, difficulty inputting data

2005-06-01 Thread Richard Lynch
to put my orders into $fileContent. How does one place > the output of > > while($row = mysql_fetch_array( $result )) > { > } > > into $fileContent? > > Thx. > > Mayo > > > > > > -Original Message- > From: Richard Lynch [mailto:

RE: [PHP] FW: write to file, difficulty inputting data

2005-06-01 Thread mayo
of while($row = mysql_fetch_array( $result )) { } into $fileContent? Thx. Mayo -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 01, 2005 1:13 AM To: mayo Cc: php-general@lists.php.net Subject: Re: [PHP] FW: write to file, difficulty inputting

Re: [PHP] FW: write to file, difficulty inputting data

2005-05-31 Thread Richard Lynch
On Tue, May 31, 2005 5:32 pm, mayo said: > if (!$handle = fopen($filename, 'w')) { This will WIPE OUT the existing file, and write a *NEW* file, from 0, starting from scratch. So you'll never have anything but the LAST item. You could use "a+" to append to the end of the file... But you *SH