Export MySQL Query to Word with PHP


After You Read Export MySQL Query to excel with PHP, maybe you also want a to Export MySQL Query to Word with PHP. Same as Export MySQL Query to Excel before, We just need to change two words.

We Just need a Connection, a Table that contain MySQL Row and This Great Script with a bit changes..


header("Content-type: application/vnd.ms-excel");

header("Content-disposition: attachment; filename=cetak_excel.xls"); // filename
header("Pragma: no-cache");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Expires: 0");

Change the green highlighted words to be :

header("Content-type: application/vnd.ms-word");
header("Content-disposition: attachment; filename=cetak_word.doc"); // filename
header("Pragma: no-cache");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Expires: 0");


Well Done You Can Produce an Word File that Export MySQL Query to word with PHP.

Komentar FB


Probably Related Article



13 comments:

rumah blogger said...
January 19, 2010 at 7:47 AM

apakah saya yang pertamaaaxx lagii...

sabirinnet said...
January 19, 2010 at 7:47 AM

mengamankan yang keduaaxxx..

another story from me said...
January 19, 2010 at 9:26 AM

jiah kalah cepat sama yang diatas

computer area said...
January 19, 2010 at 9:27 AM

ga ngerti msql taunya cuma update postingan kasih komen and blogwalking
soal penghasilan dari blog tak kupikirkan lagi

sexy galery said...
January 19, 2010 at 9:27 AM

sama seperti saudaraku yang diatas
yang penting aku enjoy ngerjain apapun itu akan kukerjakan


btw nice post bro

!Rchymera! said...
January 19, 2010 at 2:21 PM

Wow makin mantep aja sobat,thanks atas ilmunya bnr2 sangat bermanfaat dan langsung menuju TKP dech xixixi...:D

Picas said...
January 20, 2010 at 9:02 AM

@ Rumah Blogger Yup Boss
@ Sabirinnet Oc..
@ Another story, Ada pengaruhnya Yah..?

@ Computer..saya termasuk lho..cuma postingannya dokumentasi simple coding

@ Sexy galery..Yups..
@ Rchymera Thanks So Much Friend...

ngeposting ni yee said...
January 25, 2010 at 11:15 PM

nIce pOsT sOb,,

Hitsuke said...
January 31, 2010 at 7:22 PM

makasih bro udah mau berbagi.  
jangan lupa umpan baliknya ya bro
Naruto Manga | One Piece Manga | Free Facebook Layout  
Regard,  
Hitsuke

Hitsuke said...
January 31, 2010 at 7:22 PM
This comment has been removed by the author.
金瓜米粉Jason said...
May 5, 2010 at 7:26 PM

徵信社,尋人,偵探,偵探社,徵才,私家偵探,徵信,徵信社,徵信公司,抓猴,出軌,背叛,婚姻,劈腿,感情,第三者,婚外情,一夜情,小老婆,外遇,市場調查,公平交易法,抓姦,債務,債務協商,應收帳款,詐欺,離婚,監護權,法律諮詢,法律常識,離婚諮詢,錄音,找人,追蹤器,GPS,徵信,徵信公司,尋人,抓姦,外遇,徵信,徵信社,徵信公司,尋人,抓姦,外遇,徵信,徵信社,徵信公司,尋人,抓姦,外遇,徵信,徵信社,徵信公司,尋人,抓姦,外遇,徵信社

Berbagi Pengalaman said...
August 2, 2010 at 7:34 PM

Keren gan, tapi dah lupa php dah lama banget ga pernah make :(

Estudiar ingles en el extranjero said...
June 20, 2011 at 1:08 AM

An interesting discussion is worth comment. I think that you should write more on this topic, it might not be a taboo subject but generally people are not enough to speak on such topics. To the next. Cheers

Related Posts by Categories



Widget by