41 lines
871 B
PHP
41 lines
871 B
PHP
|
|
<?php
|
||
|
|
include('pdf_header.php');
|
||
|
|
include('includes/config/config.php');
|
||
|
|
//include('pop_up_top.php');
|
||
|
|
?>
|
||
|
|
<h2 style="text-align: center;">Tehsil List</h2>
|
||
|
|
<table border="1" cellspacing="0" cellpadding="5">
|
||
|
|
<?php
|
||
|
|
$ohc_type_id = "t.ohc_type_id = " . $_SESSION['current_ohcttype'];
|
||
|
|
|
||
|
|
$sql = "SELECT
|
||
|
|
t.id AS id,
|
||
|
|
t.name AS name,
|
||
|
|
d.name AS district_id
|
||
|
|
FROM
|
||
|
|
tehsils t
|
||
|
|
JOIN
|
||
|
|
districts d ON t.district_id = d.id where $ohc_type_id";
|
||
|
|
$result = mysqli_query($conn, $sql);
|
||
|
|
?>
|
||
|
|
<tr bgcolor='#eeeeee'>
|
||
|
|
<th width="200%">Tehsil Name</th>
|
||
|
|
<th width="200%">District Id</th>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
<?php
|
||
|
|
while ($rowOfprograme = mysqli_fetch_array($result)) {
|
||
|
|
?>
|
||
|
|
<tr>
|
||
|
|
<td><?php echo $rowOfprograme['name']; ?></td>
|
||
|
|
<td><?php echo $rowOfprograme['district_id']; ?></td>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
<?php
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
</table>
|
||
|
|
<?php
|
||
|
|
include('pdf_footer.php');
|
||
|
|
?>
|