43 lines
1.3 KiB
PHP
43 lines
1.3 KiB
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_fee_collection.xls');
|
|
?>
|
|
<table border="1">
|
|
<?php
|
|
$sql = "SELECT student_name, beneficiary_id, fee_schedule_id, collection_date, fee_amount, remarks, collection_status, payment_mode, payment_remarks FROM fee_collection";
|
|
//echo $sql;
|
|
error_log("query: ".$query);
|
|
$result = mysqli_query($conn,$sql);
|
|
//echo $result;
|
|
|
|
?><tr>
|
|
<th>Student Name</th>
|
|
<th>Beneficiary Id</th>
|
|
<th>Fee Schedule Id</th>
|
|
<th>Collection Date</th>
|
|
<th>Fee Amount</th>
|
|
<th>Remarks</th>
|
|
<th>Collection Status</th>
|
|
<th>Payment Mode</th>
|
|
<th>Payment Remarks</th>
|
|
</tr><?php
|
|
while($rowOfEmployee=mysqli_fetch_array($result)){
|
|
?><tr>
|
|
<td><?= $rowOfEmployee['student_name']?></td>
|
|
<td><?=$rowOfEmployee['beneficiary_id']?></td>
|
|
<td><?=$rowOfEmployee['fee_schedule_id']?></td>
|
|
<td><?=$rowOfEmployee['collection_date']?></td>
|
|
<td><?= $rowOfEmployee['fee_amount']?></td>
|
|
<td><?=$rowOfEmployee['remarks']?></td>
|
|
<td><?=$rowOfEmployee['collection_status']?></td>
|
|
<td><?=$rowOfEmployee['payment_mode']?></td>
|
|
<td><?=$rowOfEmployee['payment_remarks']?></td>
|
|
|
|
</tr><?php
|
|
}
|
|
?>
|
|
</table>
|