Hopefully someone can help me out with a bit of a quandry.
I am writing up PHP for a registration system which will be reused on an annual basis. I want to take the entries in a number of tables and archive them before clearing the tables to be used with the new year's data.
I can grab the data from the tables and create a CSV string from the information (lets say $table_data)
Now that I have that string, I want to turn it into a file which will be inserted into an archive table which will have the following columns: id_no, date_created, file_name, file_size, content.
I can simply insert the string to content, but does this turn it into a file, or is there some magical process I don't know about?