dodgei Posted February 21, 2007 Share Posted February 21, 2007 I need to export data from a table into a csv file. Can I do this with php? Also, when they click the export button I need have a pop-up that will ask for the username and password so that they can download the file. Link to comment https://forums.phpfreaks.com/topic/39394-export-csv-file/ Share on other sites More sharing options...
fert Posted February 21, 2007 Share Posted February 21, 2007 what kind of table? Link to comment https://forums.phpfreaks.com/topic/39394-export-csv-file/#findComment-190024 Share on other sites More sharing options...
dodgei Posted February 21, 2007 Author Share Posted February 21, 2007 Its data displayed in table format from a select * query from the database. Link to comment https://forums.phpfreaks.com/topic/39394-export-csv-file/#findComment-190027 Share on other sites More sharing options...
fert Posted February 21, 2007 Share Posted February 21, 2007 mysql_query(); mysql_fetch_array(); Link to comment https://forums.phpfreaks.com/topic/39394-export-csv-file/#findComment-190044 Share on other sites More sharing options...
dodgei Posted February 21, 2007 Author Share Posted February 21, 2007 its actually odbc_fetch_array Link to comment https://forums.phpfreaks.com/topic/39394-export-csv-file/#findComment-190052 Share on other sites More sharing options...
fert Posted February 21, 2007 Share Posted February 21, 2007 format the file by placing tabs in between columns and rows with new lines that should work. Link to comment https://forums.phpfreaks.com/topic/39394-export-csv-file/#findComment-190053 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.