gum1982 Posted October 14, 2009 Share Posted October 14, 2009 Hello I need to create an online business health check for a client it will be multiple choice and about 50 questions but the client has requested that the output/results of the health check needs to be sent to them in a CSV format so that they can the load it into excell and analysis it. Is this possible? i have never used CSV files from PHP so any information on this would be greatfully appriciated. Link to comment https://forums.phpfreaks.com/topic/177666-business-health-check/ Share on other sites More sharing options...
GKWelding Posted October 14, 2009 Share Posted October 14, 2009 plenty of articles on google about this. you can export an html generated table (generated dynamically using php if you wish) directly to excel (.xls). Link to comment https://forums.phpfreaks.com/topic/177666-business-health-check/#findComment-936793 Share on other sites More sharing options...
gum1982 Posted October 14, 2009 Author Share Posted October 14, 2009 Ok thankyou i will start googling. So i can litterally just set it up as a form format that will POST out the results in a CSV/xls format. Link to comment https://forums.phpfreaks.com/topic/177666-business-health-check/#findComment-936801 Share on other sites More sharing options...
zq29 Posted October 14, 2009 Share Posted October 14, 2009 You'll need to write the code that creates the CSV file. Look into: fopen() fwrite() fclose() Link to comment https://forums.phpfreaks.com/topic/177666-business-health-check/#findComment-936805 Share on other sites More sharing options...
gum1982 Posted October 14, 2009 Author Share Posted October 14, 2009 Ok thankyou this helps. Link to comment https://forums.phpfreaks.com/topic/177666-business-health-check/#findComment-936808 Share on other sites More sharing options...
Garethp Posted October 14, 2009 Share Posted October 14, 2009 Or you can set the header to appilication csv and just echo out a csv format Link to comment https://forums.phpfreaks.com/topic/177666-business-health-check/#findComment-936810 Share on other sites More sharing options...
GKWelding Posted October 14, 2009 Share Posted October 14, 2009 I was talking more about the method Gareth said, set the header type as csv or xls. Link to comment https://forums.phpfreaks.com/topic/177666-business-health-check/#findComment-936813 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.