| Current Path : /var/www/html/kpsingh/kpsingh/ |
| Current File : /var/www/html/kpsingh/kpsingh/publications.php |
<link rel = "stylesheet" type="text/css" href="css/publications.css">
<?php
include 'template.php';
include 'db.php';
$sql = "SELECT DISTINCT year FROM publications ORDER BY year DESC";
$result = mysqli_query($dbconn, $sql);
while($obj = mysqli_fetch_object($result)){
$year = $obj->year;
?>
<div id = "res">
<b><?php echo $year; ?></b>
<br><br>
<?php
$sql1 = "SELECT pub FROM publications WHERE year='$year'";
$result1 = mysqli_query($dbconn, $sql1);
while($obj1 = mysqli_fetch_object($result1)){
$pub = $obj1->pub;
echo $pub;
?>
<br><br>
<?php }; ?>
</div>
<?php
};
?>