Results 1 to 4 of 4
Thread: excel xml PHP
Hybrid View
-
11th July 2011 10:05 #1
-
16th July 2011 15:11 #2Registered User
Join Date: Jul:2010
Location: Veliko Tarnovo
Posts: 55
-
24th July 2011 23:49 #3Registered User
Join Date: Sep:2009
Location:
Posts: 4
excel openoffice, , - , a xls:
- CP1251, .PHP Code:$data = "";
while ($r=fetchrow()) {
$data .= "\"".$r[0]."\"\t\"".$r[1]."\"\t\"".$r[2]."\"\t\"".$r[3]."\"\t";
$data .= "\n";
}
$output = mb_convert_encoding($title.$data, "CP1251", "UTF-8");
header('Content-Disposition: attachment; filename="FileName-'.date('Y_m_d_H_i').'.xls"');
header("Content-Type: application/vnd.ms-excel; charset=windows-1251");
echo $output;
-
25th July 2011 00:15 #4




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in