23 lines
808 B
PHP
23 lines
808 B
PHP
|
<?php //include('pdf_header.php');
|
||
|
include('includes/config/config.php');
|
||
|
//include('pop_up_top.php');
|
||
|
header('Content-Type: application/force-download');
|
||
|
header('Content-disposition: attachment; filename=excel_ingredient.xls');
|
||
|
?>
|
||
|
<table border="1">
|
||
|
<?php
|
||
|
$sql="select ingredient_id,ingredient_name,ingredient_desc,ingredient_code from ingredient";
|
||
|
//echo $sql;
|
||
|
$result = mysqli_query($conn,$sql);
|
||
|
//echo $result;
|
||
|
?><tr><th>Ingredient Name</th><th>Ingredient Desc</th><th>Ingredient Code</th> </tr><?php
|
||
|
while($rowOfEmployee=mysqli_fetch_array($result)){
|
||
|
|
||
|
?><tr><td><?php echo $rowOfEmployee['ingredient_name']?></td><td><?php echo $rowOfEmployee['ingredient_desc']?></td><td><?php echo $rowOfEmployee['ingredient_code']?></td></tr><?php
|
||
|
|
||
|
}
|
||
|
?>
|
||
|
</table>
|
||
|
<?php
|
||
|
//include('pdf_footer.php');
|
||
|
?>
|