N/APosted on - 04/20/2013
I have this workout sports tracker which I have updated for the past 3 months or so. I wanted to have the information in a CSV file. Is there a way I can export sports tracker to CSV files to form the basis of application building by my PHP & MySQL programmer? I will really appreciate any help accorded.
How can I convert sport tracker to CSV file?
Hi. It is possible to export from MySQL using PHP. PHP 5.1 and above has a function called fputcsv formats a string which is terminated by a new line as CSV and writes it to the pre-defined file handle. You can have a look at that function and maybe learn to use it. I have however attached a file which contais a function that does the same task as fputcsv. The function I have used echoes the CSV data as opposed to writing to a file. I hope this helps.