Viewing file: paperset.php (3.16 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!DOCTYPE html> <html>
<head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <title>Untitled</title> <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="assets/fonts/fontawesome-all.min.css"> <link rel="stylesheet" href="assets/fonts/font-awesome.min.css"> <link rel="stylesheet" href="assets/fonts/fontawesome5-overrides.min.css"> <link rel="stylesheet" href="assets/css/Customizable-Carousel-swipe-enabled.css"> <link rel="stylesheet" href="assets/css/Lista-Productos-Canito.css"> <link rel="stylesheet" href="assets/css/styles.css"> </head>
<body>
<?php $keywords = $user;
/* Attempt MySQL server connection. Assuming you are running MySQL server with default setting (user 'root' with no password) */ include 'connect.php'; // Attempt select query execution $sql = "SELECT * FROM admission where enrollment='$user'"; if($result = mysqli_query($link, $sql)){ if(mysqli_num_rows($result) > 0){
while($row = mysqli_fetch_array($result)){ $roll_no= $row['roll_no']; $name= $row['name']; $course= $row['course']; $mobile= $row['mobile']; $expiry_date= $row['expiry_date']; $deposit_fees= $row['deposit_fees']; } // Free result set mysqli_free_result($result); } else{ echo "No records matching your query were found."; } } else{ echo "ERROR: Could not able to execute $sql. " . mysqli_error($link); } // Close connection mysqli_close($link);
?>
<div> <div class="container"> <div class="row"> <div class="col-md-12"> <table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%"> <tbody> <tr> <th>1-</th> <th>Students Roll No</th> <th><?php echo $user ?></th> <th></th> </tr> <tr> <td>2-</td> <td>Name</td> <td><?php echo $name ?></td> <td></td> </tr> <tr> <td>3-</td> <td>Course Name</td> <td><?php echo $course ?></td> <td></td> </tr> <tr> <td>4-</td> <td>Mobile</td> <td><?php echo $mobile ?></td> <td></td> </tr> <tr> <td>5-</td> <td>Exam Link</td> <td><a href="onedayexam.php">Online Exam</a></td> <td></td> </tr> <tr> <td>5-</td> <td>Resul</td> <td><a href="result.php">Result</a></td> <td></td> </tr> </tbody> </table></div> </div> </div> </div> <script src="assets/js/jquery.min.js"></script> <script src="assets/bootstrap/js/bootstrap.min.js"></script> <script src="assets/js/Customizable-Carousel-swipe-enabled.js"></script> </body>
</html>
|