Firstly we make a table like this :
| No. | Name | Position |
|---|---|---|
| 1 | A | Analyst |
| 2 | B | Programmer |
Next we add a code in the top of header like this:
- header("Content-type: application/vnd.ms-excel");
- header("Content-disposition: attachment; filename=coba1.xls"); // filename terserah anda
- header("Pragma: no-cache");
- header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
- header("Expires: 0");
"Finish, that's all. You only put that header" explain B. "OK, i will try it, thanx palz" A answered.
Tidak ada komentar:
Posting Komentar