Originally posted by Mordecai
Now, write to the file:
fwrite($fp,$contents); // $contents will have to be a variable containing everything you want to write. You can set it like any other variable.
Thank you for the fast reply! This looks fairly straightforwad. My only remaining question is about the $contents variable. I understand that I will have to set this variable, but how? What I mean is, how do I specify the format in which I want the data to be saved/exported?
I'm assuming it will be a MySQL query, but.... how do I get from that to a nice address format like:
Foo Bar
123 Foo Rd.
Anytown, NY 12345
? Thanks again!