File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/teacher-list.php
<?php
include("config/connection.php");
$connection = new createCon();
$connection->connect();
$dep = $_GET['Department'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Shaheed Bhagat Singh College</title>
<!-- META TAGS -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="#">
<meta name="keyword" content="#">
<?php include 'inc/header.php';?>
</head>
<body>
</br>
<div class="container">
<div class="row">
<div class=" col-md-12">
<div class="list-group">
<a href="javascript:void(0)" class="list-group-item active">Teacher-List</a>
<?php
$sql = mysqli_query($connection->myconn, "SELECT * FROM teacher WHERE subject_id = '".$dep."' AND action='1' ORDER BY name ASC");
while($rows = mysqli_fetch_array($sql))
{
?>
<a href="e-data.php?Teacher=<?php echo $rows['id']; ?>&Dep=<?php echo $dep;?>" class="list-group-item"><i class="fa fa-user" aria-hidden="true"></i> <?php echo $rows['name']; ?></a>
<?php
}
?>
</div>
</div>
</div>
</div>
</div>
<?php include 'inc/footer.php';?>
</body>
</html>