How can I convert sport tracker to CSV file?

Asked By 30 points N/A Posted on -
qa-featured

Hallo.

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.

SHARE
Answered By 0 points N/A #172020

How can I convert sport tracker to CSV file?

qa-featured

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.

Related Questions