spooke2k Posted June 20, 2007 Share Posted June 20, 2007 what im trying to do is do a select query and then export it to a CSV. But i can only seem to find upload csv into table examples i just want a simple demo so i can see how to make a CSV from a select query. Thanks Spooke2k Link to comment https://forums.phpfreaks.com/topic/56438-solved-csv/ Share on other sites More sharing options...
emehrkay Posted June 20, 2007 Share Posted June 20, 2007 well a csv is just a comma delimited file, so all you really have to do is create a var, loop through your results adding each one by comma and on the last one add a \n new line then do the next row. and finally pass the var to the browser with the correct headers and you have a csv file Link to comment https://forums.phpfreaks.com/topic/56438-solved-csv/#findComment-278755 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.