Hi there,
I want to read the content from my MySQL database and put it into a Word-Document that is created on the fly from a Word-template (with Bookmarks). All this must happen with a PHP script.
My system's configuration: Fedora Core 1 with PHP 4.3.2 and MySQL.
So I went searching everywhere for a script that does what I described above.
I found several manuals, that referred to COM support. Nice scripts, but this doesn't work on my Linux box.
So i figured I use:
Header("Content-type: application/msword"
;
Header("Content-Disposition: attachment; filename=test.doc"
;
A document is created though, and MS Word opens.
But how can I get say TABLE_A in MySQL get into BOOKMARK_A in my Word-Document?
The manuals (among many others) that I already checked are:
thread434-732530
I want to read the content from my MySQL database and put it into a Word-Document that is created on the fly from a Word-template (with Bookmarks). All this must happen with a PHP script.
My system's configuration: Fedora Core 1 with PHP 4.3.2 and MySQL.
So I went searching everywhere for a script that does what I described above.
I found several manuals, that referred to COM support. Nice scripts, but this doesn't work on my Linux box.
So i figured I use:
Header("Content-type: application/msword"
Header("Content-Disposition: attachment; filename=test.doc"
A document is created though, and MS Word opens.
But how can I get say TABLE_A in MySQL get into BOOKMARK_A in my Word-Document?
The manuals (among many others) that I already checked are:
thread434-732530