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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.