algorithm Posted May 13, 2010 Share Posted May 13, 2010 I'm trying to write a php script that gets a table name for mysql and generates a .csv to download for the user. Like an 'export data' link. I know you can do this through phpmyadmin, but how can i make a link for my site? Any hints? Link to comment https://forums.phpfreaks.com/topic/201681-creating-dynamic-link-to-csv/ Share on other sites More sharing options...
iblood Posted May 13, 2010 Share Posted May 13, 2010 hint u will create a page and inside that: header() ->the one used for downloading //get data to be inserted to csv echo data; // your data will then be downloaded once the page is opened then on your main page <a href="the page u created above.php">export</a> lol there's your hint Link to comment https://forums.phpfreaks.com/topic/201681-creating-dynamic-link-to-csv/#findComment-1057976 Share on other sites More sharing options...
algorithm Posted May 13, 2010 Author Share Posted May 13, 2010 i finished the script and it worked thanks man Link to comment https://forums.phpfreaks.com/topic/201681-creating-dynamic-link-to-csv/#findComment-1058008 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.