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

28 lines
953 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=covidwah_questions.xls');
mysqli_query($conn,'SET character_set_results=utf8');
?>
<table border="1">
<?php
$sql="select * from covid_wah_questions";
//echo $sql;
$result = @mysqli_query($conn,$sql);
//echo $result;
?><tr bgcolor="#eeeeee"><th width="5%">SR NO.</th><th width="50%">Questions In English</th><th width="50%">Questions In Hindi</th><th width="20%">Type</th><th width="20%">Sequence</th></tr><?php
$i=0;
while($row=@mysqli_fetch_array($result)){
$i++;
?><tr><td><?php echo $i?></td><td><?php echo $row['question']?></td><td><?php echo $row['question_hindi']?></td><td><?php echo $row['type']?></td><td><?php echo $row['sequence']?></td></tr><?php
}
?>
</table>
<?php
//include('pdf_footer.php');
?>