Re: [PHP] write to file question, rewritten

2005-06-01 Thread Mark Cain
nction is available to your code you can write your data in a manner like this: file_put_contents('/root/directory/pathtoyourfile/mydata.txt',$filecontent); Mark Cain - Original Message - From: "mayo" <[EMAIL PROTECTED]> To: Sent: Wednesday, June 01, 2005 7:01

[PHP] write to file question, rewritten

2005-06-01 Thread mayo
I'm trying to write the results of a mysql_fetch_array db query to a file and am unable to. I'm putting the results into a variable $fileContent and then using fwrite(). I would have liked to do something like: $filecontent = . $result = mysql_query( " SELECT orderedItems