Windows NT P3613 10.0 build 20348 (Windows Server 2022) AMD64
C:
/
Inetpub
/
vhosts
/
gyandeepclasses.com
/
pdpandyamcc.com
/
C:/Inetpub/vhosts/gyandeepclasses.com/pdpandyamcc.com/results.php
<?php include_once('dbconfig.php'); include_once('header.php'); ?> <!-- END nav --> <section class="hero-wrap hero-wrap-2" style="background-image: url('images/banner1.jpg');"> <div class="overlay"></div> <div class="container"> <div class="row no-gutters slider-text align-items-center justify-content-center"> <div class="col-md-9 ftco-animate text-center"> <h1 class="mb-2 bread">Results</h1> <p class="breadcrumbs"><span class="mr-2"><a href="index.html">Home <i class="ion-ios-arrow-forward"></i></a></span> <span>Results <i class="ion-ios-arrow-forward"></i></span></p> </div> </div> </div> </section> <section class="ftco-section bg-light"> <div class="row"> <div class="col-12 text-center"> <h3 class="fw-bold"><b>Our Results</b></h3> </div> </div> <div class="container"> <div class="row"> <div class="table-responsive"> <table class="table table-hover table-striped"> <thead> <tr> <th>Result ID</th> <th>Academic Year</th> <th>Semester</th> <th>Total Students</th> <th>Pass</th> <th>Percentage</th> <th>Achievement</th> </tr> </thead> <tbody> <?php // Assuming $conn is your database connection $data = $conn->query("SELECT r.*, a.Academic_year FROM result r JOIN academicyear a ON r.Academic_year_id = a.Academic_year_id order by r.Academic_year_id desc,r.Sem"); while ($row = $data->fetch_assoc()) { ?> <tr> <td><?php echo htmlspecialchars($row['Result_Id']); ?></td> <td><?php echo htmlspecialchars($row['Academic_year']); ?></td> <td><?php echo htmlspecialchars($row['Sem']); ?></td> <td><?php echo htmlspecialchars($row['TotalStudent']); ?></td> <td><?php echo htmlspecialchars($row['Pass']); ?></td> <td><?php echo htmlspecialchars($row['Percentage']); ?></td> <td><?php echo htmlspecialchars($row['Achievement']); ?></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </section> <?php include_once("footer.php"); ?>