ESH/direct_medicine_issue_pdf.php
2024-10-23 18:28:06 +05:30

29 lines
922 B
PHP

<?php include('pdf_header.php');
//include('includes/config/config.php');
//include('pop_up_top.php');
?>
<table border="1" width="100%">
<?php
$sql="select a.*, b.type_name, c.item_name from direct_medicine_issue_log a left join direct_medicine_issue_log_details x on a.issue_log_id=x.issue_log_id left join medicine_issue_point b on a.issue_point_id = b.point_id left join tbl_items c on x.item_id = c.item_id";
//echo $sql;
$result = mysqli_query($conn,$sql);
//echo $result;
?><tr bgcolor='#eeeeee'>
<th> Issue Type </th>
<th>Medicine Name</th>
<th>Issue Qty</th>
</tr><?php
while($rowOfEmployee=mysqli_fetch_array($result)){
?><tr>
<td><?php echo $rowOfEmployee['type_name']?></td>
<td><?php echo $rowOfEmployee['item_name']?></td>
<td><?php echo $rowOfEmployee['issue_qty']?></td>
</tr><?php
}
?>
</table>
<?php
include('pdf_footer.php');
?>