Apartado de descarga

leandrogo

Bovino adolescente
#1


En el primer apartado quiero poner un link que lleve al pdf y el segundo a un archivo de excel.

Dejo mi codigo, espero me puedan ayudar.




<?php
require('conexion.php');

$query="SELECT * FROM deduc11k ORDER BY numes";

$resultado=$mysqli->query($query);

?>

<HTML LANG="es">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<head>
<BR>
<BR>
<BR>
<BR>
<title>COMERCIO</title>
</head>
<body>
<div id="cuadro">
<center><img src="contacDt.png"><br>
<div id="titulo">
<center><h1>ENTREGAS</h1></center>
</div>

<table>
<thead>
<tr class="centro">
<td>AÑO</td>
<td>MES</td>
<td>STATUS</td>
<td>TICKET</td>
<td>BONIFICACION</td>
<td><img align="center" src= "d_pdf.png"/>


</td>
<td><img align="center" src= "d_excel.png"/></td>

</tr>
<tbody>
<?php while($row=$resultado->fetch_assoc()){ ?>
<tr>
<td><?php echo $row['year'];?>
</td>
<td>
<?php echo $row['mes'];?>
</td>
<td>
<?php echo $row['status'];?>
</td>
<td>
<?php echo $row['tickets'];?>
</td>
<td>
<?php echo $row['bon'];?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</center
></div>
</body>
</html>
 
Arriba