Display the WORD solution on the WEB

Source: Internet
Author: User
Display WORDhttp: // keyword in the WEB
Http://www.gov.cn/zwgk/2012-02/29/content_2079097.htm
Http://www.gov.cn/gzdt/2012-02/14/content_2066374.htm
Http://www.gov.cn/zwgk/2012-03/07/content_2085877.htm
I want to make a news release. click the link to go to the content page and display the news content, just like the link above.
But I don't know what MYSQL has found for a long time on the internet when I access WORD files, but there is no text format when I read them ......
In this case ·

Mysql_connect ("localhost", "root", "1 ");

Mysql_select_db ("xypi20 ");
Mysql_query ("set names 'gb2312 '");
$ Filename = "xyp"; // enter the binary file name here.

$ Query = "select data from testtable where filename = '$ filename '";

// $ Result = mysql_query ($ query );
$ OK = mysql_query ($ query );

$ Data = mysql_fetch_array ($ OK );
Echo $ data ['data'];
?>
This is what I found on the Internet, but it is not formatted. what I said on the Internet is in PDF format? what are these websites ··

When I write this post, I find that the words in the WORD can be copied in this post box, and it seems that the format is also... this method is feasible if the WORD content cannot be directly displayed on the WEB.? This is how it is made. I cannot do this. · Cainiao begged me ~

------ Solution --------------------
In fact, all you need for lz is html in the same format as word.
Copy the text to a web text editor such as fckeditor (like the csdn reply box), and then the background php can save html to mysql text.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.