Re(2): [PHP-ES] exportar a excel

From: Date: Mon, 09 Feb 2004 05:36:32 +0000
Subject: Re(2): [PHP-ES] exportar a excel
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-45313@lists.php.net to get a copy of this message
<? $fecha = date('m-d-Y'); header('Content-type: application/vnd.ms-excel'); header("Content-Disposition: attachment; filename=reporte_del_$fecha.xls"); header("Pragma: no-cache"); header("Expires: 0"); echo "<table border=1>\n"; echo "<tr>\n"; echo "<th>NOMBRE</th>\n"; echo "<th>EDAD</th>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td><font color=red>LAURA</font></td>\n"; echo "<td>23</td>\n"; echo "</tr>\n"; echo "</table>\n"; ?> espero este te ayude un poco mas.........

« previous php.general.es (#45313) next »