csrtechnew.ohctech.in/excel_fee_schedule_list.php
2025-04-14 13:28:09 +05:30

27 lines
780 B
PHP

<?php
//include('pdf_header.php');
// error_reporting(E_ERROR | E_PARSE);
include('includes/config/config.php');
include('log_entry.php');
header('Content-disposition: attachment; filename=excel_batch_fee_schedule.xls');
?>
<table border="1">
<?php
$sql="select schedule_name,batch,due_date,amount_due from batch_fee_schedule";
//echo $sql;
error_log("query: ".$query);
$result = mysqli_query($conn,$sql);
//echo $result;
?><tr><th>Schedule name</th><th>Batch</th><th>Due date</th><th>Amount Due</th>
</tr><?php
while($rowOfEmployee=mysqli_fetch_array($result)){
?><tr><td><?= $rowOfEmployee['schedule_name']?></td>
<td><?=$rowOfEmployee['batch']?></td>
<td><?=$rowOfEmployee['due_date']?></td>
<td><?=$rowOfEmployee['amount_due']?></td>
</tr><?php
}
?>
</table>