38 lines
905 B
PHP
38 lines
905 B
PHP
<?php
|
|
// include('pdf_header.php');
|
|
include('includes/config/config.php');
|
|
include('includes/functions.php');
|
|
header('Content-Type: application/force-download');
|
|
header('Content-disposition: attachment; filename=excel_state_list.xls');
|
|
error_reporting(E_ERROR | E_PARSE);
|
|
?>
|
|
<center>
|
|
<table border="1" style="text-align: center;">
|
|
<?php
|
|
$sql = "SELECT * from state_form_master ORDER BY id DESC";
|
|
error_log($sql);
|
|
$result = mysqli_query($conn, $sql);
|
|
//echo $result;
|
|
?>
|
|
<tr bgcolor='#eeeeee'>
|
|
<td width="2%">Sr</td>
|
|
<td width="15%">State</td>
|
|
</tr>
|
|
|
|
<?php
|
|
$count = 1;
|
|
while ($row_staff = mysqli_fetch_assoc($result)) {
|
|
extract($row_staff);
|
|
?>
|
|
|
|
<tr>
|
|
<td><?php echo $count ?></td>
|
|
<td><?php echo $row_staff['state_code'] ?></td>
|
|
</tr>
|
|
<?php
|
|
$count++;
|
|
}
|
|
?>
|
|
</table>
|
|
</center>
|