27 lines
812 B
PHP
27 lines
812 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=referred_list.xls');
|
|
?>
|
|
<table border="1">
|
|
<?php
|
|
$sql="select * from referred_by_master";
|
|
//echo $sql;
|
|
$result = @mysqli_query($conn,$sql);
|
|
//echo $result;
|
|
|
|
?><tr bgcolor="#eeeeee"><th width="10%">Id</th><th width="10%">Referred By</th><th width="6%">Description</th><th width="25%">Remarks</th></tr><?php
|
|
$i=0;
|
|
while($row=@mysqli_fetch_array($result)){
|
|
$i++;
|
|
|
|
|
|
|
|
?><tr><td><?php echo $i?></td><td><?php echo $row['referred_by']?></td><td><?php echo $row['description']?></td><td><?php echo $row['remarks']?></td></tr><?php
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
//include('pdf_footer.php');
|
|
?>
|