SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Serial Site Creator ToddW's Avatar
    Join Date
    Feb 2004
    Posts
    791
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP/MYSQL Save data to MS Word .DOC

    So, I have user data stored in a mysql db and want to be able to open up a word .doc and replace {stuff} in there with the data from the MYSQL db.

    I used {STUFF} as an example of something that would be found in the word document and replaced with the real value.

    Is there an existing class or script out there made to open MS Word documents for reading in php?

    Thanks
    -Todd

  2. #2
    SitePoint Zealot darksystem's Avatar
    Join Date
    Jan 2005
    Location
    Fayettville, North Carolina
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have made something like that before but I'm selling it. Contact me in private along with your offer(budget) and time frame you need it - if interested.

    Your requirement here can also be done.
    Ebay API, OSC/CRE/OscMax/ZenCart/SEO Services
    Lucki Multimedia - Email

  3. #3
    Serial Site Creator ToddW's Avatar
    Join Date
    Feb 2004
    Posts
    791
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by darksystem View Post
    I have made something like that before but I'm selling it. Contact me in private along with your offer(budget) and time frame you need it - if interested.

    Your requirement here can also be done.
    How about you give more details...

  4. #4
    SitePoint Wizard lorenw's Avatar
    Join Date
    Feb 2005
    Location
    was rainy Oregon now sunny Florida
    Posts
    1,104
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Here is a discussion on that.
    http://www.ozzu.com/ftopic65376-15.html

    I would do something like

    doc.php?doc=summary

    then in doc.php, first line would be
    PHP Code:
    header("Content-Type:  application/vnd.ms-excel"); 
    and then do your query and echo it out, it should work.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •