scc_pg_admission_2025/.google/PG-Admission-with-google-si.../admission_admin/departments.php

45 lines
1.4 KiB
PHP

<?php
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
$s= urldecode($_GET['s']);
$sql = "SELECT * FROM `admission` WHERE `ADMISSION_CHALAN` IS NOT NULL " ."ORDER BY HS_SUB_AGG DESC";
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) > 0) {
echo'<div class="container table-responsive text-center">
<h1>'.$s.'</h1><hr>
<table class="table table-bordered table-striped table-hover">
<tr>
<th>SL</th>
<th>FORM ID</th>
<th>STUDENT NAME</th>
<th>MOBILE NO.</th>
<th>STREAM</th>
<th>AGGREGATE MARKS</th>
</tr>';
$i=0;
$t01=0;
$t02[0]=0;
while($row = mysqli_fetch_assoc($result)) {
$i++;
$id = $row["ID"];
$STUDENT_NAME = $row["STUDENT_NAME"];
$MOBILE = $row["MOBILE"];
$Aggregate = $row["HS_SUB_AGG"];
$GEN_HONOURS = $row["GEN_HONOURS"];
$FORM_CHALAN = $row["FORM_CHALAN"];
$ADMISSION_CHALAN = $row["ADMISSION_CHALAN"];
$MERIT_LIST = $row["MERIT_LIST"];
echo '
<tr>
<td>'.$i.'</td>
<td>SCC19UG'.$id.'</td>
<td>'.$STUDENT_NAME.'</td>
<td>'.$MOBILE.'</td>
<td>'.$GEN_HONOURS.'</td>
<td>'.$Aggregate.'</td>
</tr>';
}echo ' </table></div>';
} else { echo "<div class='container text-center'><h2>No students for this Stream!</h2></div>";}
?>