Puplulate .doc file from MS Word template and MySql database

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
guptashivam1987
Forum Newbie
Posts: 1
Joined: Fri Sep 30, 2011 6:50 am

Puplulate .doc file from MS Word template and MySql database

Post by guptashivam1987 »

I have a MS Word Template. I want to create a MS word file with the help of that template and want to populate it with data from MySql database. Using PHP

It is very urgent, it is stopping my whole project development process.
Please suggest me ,

You can reach me at developers4php@gmail.com
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: Puplulate .doc file from MS Word template and MySql data

Post by yacahuma »

try using and RTF file instead of word. If you have the choice. edit the rtf and place somehitng like


my name is {VAR_PERSON_FULLNAME}

Then in you code open the rtf , do a search and replace for your variables, and write it again.
Post Reply