mhhh the script is simply... ther are only the xls header information...
instead of the data are in 1000 rows in html code... part of this rows are in a while and print that 10000 rows.
this is the php headers
<?php
$filename="Export_Previsioni_" . date("Ymd") . ".xls";
#header ("Content-Type: application/vnd.ms-excel");
#header ("Content-Disposition: inline; filename=$filename");
header("Content-type: application/x-msdownload");
header("Content-Disposition: attachment; filename=$filename");
header("Pragma: no-cache");
header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
header("Expires: 0");
header('Content-Transfer-Encoding: none');
header('Content-Type: application/vnd.ms-excel;'); // This should work for IE & Opera
header("Content-type: application/x-msexcel"); // This should work for the rest
?>