Re: Pasar a excel
| From: | Patricio Salinas V. | Date: | Thu, 12 Jun 2003 18:03:51 +0000 |
| Subject: | Re: Pasar a excel | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-37313@lists.php.net to get a copy of this message | ||
<?phpheader('Content-type: application/vnd.ms-excel');
echo "<table border=1";
echo "<tr>";
echo "<th>Titulo 1</th>";
echo "<th>Titulo 2</th>";
echo "<th>Titulo 3</th>";
echo "</tr>";echo "<tr>";
echo "<TD>Valor 1</TD>\n";
echo "<TD>Valor 2</TD>\n";
echo "<TD>Valor 3</TD>\n";
echo "</tr>";
echo "</table>";
?>
Manuel A. Garcia wrote:
Hola Liter@s Tengo un problema :( Tengo q leer unos datos de la DB y pasarlos a un excel (xls). Alguien ha echo algo parecido??? o saben de donde puedo sacar info??? Gracias M. García. --------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/ via news: news://news.phpes.com/ Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.com