Membuat Excel Di code igniter

excel.php



<?php
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=sance.xls");
header("Pragma: no-cache");
header("Expires: 0");
?>
<table border="1" width="100%">
<thead>
<tr>
 <th>Nama</th>
 <th>Username</th>
 <th>Password</th>
 </tr>
</thead>
<tbody>
<?php $i=1; foreach($TampilIp as $TI) { ?>
<tr>
 <td><?php echo $TI->nim ?></td>
 <td><?php echo $TI->status ?></td>
 <td><?php echo $TI->host_name ?></td>
 </tr>
<?php $i++; } ?>
</tbody>
</table>


Referensi  Click here



Membuat Excel Di code igniter Membuat Excel Di code igniter Reviewed by Leo on 02:24 Rating: 5

No comments