4
I need some help. I have a query in php and Mysql and would like to add to this query the option to export the data also to excel. It is possible to do this with php?
<div id="tabs">
<ul>
<li><a href="#tabs-1">Informação</a></li>
<li><a href="#tabs-4">Trabalhadores</a></li>
<li><a href="#tabs-2">Credenciais</a></li>
<li><a href="#tabs-3">Equipamentos</a></li>
</ul>
<?php
include("conectar.php");
$id = $_GET['id'];
$sql = "select * from TABELAS Where CAMPOS and tb_trabalhador.id = $id order by tb_trabalhador.id asc ";
$qr = mysql_query($sql) or die(mysql_error());
while($exibe = mysql_fetch_array($qr)){
//Todos os dados a serem mostrado
http://sdevlab.wordpress.com/2010/06/01/php-howto create and export worksheets Do-excel-data De-um-bd/ This link shows the right!
– anderson seibert