robert_gsfame Posted January 11, 2010 Share Posted January 11, 2010 I have retrieve data from mysql database and display it on my php page, what i want to do is to get those whatever data on my php page to be appeared in word document by downloading it How can i do that?? Any tutorial or maybe someone could help Thx Quote Link to comment https://forums.phpfreaks.com/topic/188050-convert-php-page-into-ms-word/ Share on other sites More sharing options...
r-it Posted January 11, 2010 Share Posted January 11, 2010 the best would be to just create a file, build an html string with php and store that in the file you have created, ms word will automatically make the html readable (remember when creating the file you must name it with a .doc extension) Quote Link to comment https://forums.phpfreaks.com/topic/188050-convert-php-page-into-ms-word/#findComment-992784 Share on other sites More sharing options...
robert_gsfame Posted January 11, 2010 Author Share Posted January 11, 2010 Then how to let user download it?? I know how to let user downloading whatever file that has been stored inside one of my folder...But in this case, i don't have anything to be downloaded only data which is displayed on my html page. Still confused Quote Link to comment https://forums.phpfreaks.com/topic/188050-convert-php-page-into-ms-word/#findComment-992788 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.