46 lines
1.5 KiB
PHP
46 lines
1.5 KiB
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=questionair_master.xls');
|
|
mysqli_query($conn, 'SET character_set_results=utf8');
|
|
?>
|
|
<table border="1">
|
|
<?php
|
|
$sql = "select * from questionaire_master";
|
|
//echo $sql;
|
|
$result = @mysqli_query($conn, $sql);
|
|
//echo $result;
|
|
|
|
?><tr bgcolor="#eeeeee">
|
|
<th width="5%">SR NO.</th>
|
|
<th width="50%">Questions</th>
|
|
<th width="50%">Questions In Local Language</th>
|
|
<th width="20%">Question Type</th>
|
|
<th width="20%">Question Sequence</th>
|
|
<th width="20%">Section Name</th>
|
|
<th width="20%">Sub Section Available</th>
|
|
<th width="20%">Sub Section Order</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_local'] ?></td>
|
|
<td><?php echo $row['question_type'] ?></td>
|
|
<td><?php echo $row['question_sequence'] ?></td>
|
|
<td><?php echo $row['section_name'] ?></td>
|
|
<td><?php echo $row['sub_section_available'] ?></td>
|
|
<td><?php echo $row['sub_section_order'] ?></td>
|
|
</tr><?php
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
//include('pdf_footer.php');
|
|
?>
|