How to Get Results in the Word file? Or how to print the results in the Word file?
using php

Hi,

You can actually make Word documents by saving content to them in HTML format.

E.g.

<html>
    <head></head>
    <body>
        <h1>Example title</h1>
        <p>This is some example content...</p>
    </body>
</html>

If I recall correctly, I think the head tag has to be empty, otherwise it screws up. However if you used PHP to save content in the format above to a file with a .doc or .docx extension, it should open successfully in MS Word with the appropriate formatting.

R.

i want each result to be at new word document

Okay, that's easy enough. Why not just iterate through your results, writing each to a separate Word document as HTML??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.