Viewing file: courses.php (4.41 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!DOCTYPE html> <html lang="en">
<head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <title>ITCE (INFYSYS TECHNOLOGIES COMPUTER EDUCATION )</title> <meta name="description" content=""> <meta name="keywords" content="">
<!-- Favicons --> <link href="assets/img/favicon.png" rel="icon"> <link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- Fonts --> <link href="https://fonts.googleapis.com" rel="preconnect"> <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<!-- Vendor CSS Files --> <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet"> <link href="assets/vendor/aos/aos.css" rel="stylesheet"> <link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet"> <link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
<!-- Main CSS File --> <link href="assets/css/main.css" rel="stylesheet">
<!-- ======================================================= * Template Name: eBusiness * Template URL: https://bootstrapmade.com/ebusiness-bootstrap-corporate-template/ * Updated: Jun 23 2025 with Bootstrap v5.3.6 * Author: BootstrapMade.com * License: https://bootstrapmade.com/license/ ======================================================== --> </head>
<body class="index-page">
<?php include 'header.php'; ?>
<main class="main">
<?php $certificateno = @$_GET['certificateno'] ; /* Attempt MySQL server connection. Assuming you are running MySQL server with default setting (user 'root' with no password) */ include 'admin/connect.php'; echo ' <table class="table"> <thead> <tr> <th scope="col">Serial</th> <th scope="col">Course</th> <th scope="col">Code</th> <th scope="col">Duration</th> <th scope="col">Eligibility</th> <th scope="col">Topics</th> </tr> </thead>'; // Attempt select query execution $sql = "SELECT * FROM courses "; if($result = mysqli_query($link, $sql)){ if(mysqli_num_rows($result) > 0){ $count =1 ; while($row = mysqli_fetch_array($result)){ $course_name=strip_tags($row['course_name']) ; $course_code=strip_tags($row['course_code']) ; $course_duration=strip_tags($row['course_duration']); $course_elegibility=strip_tags($row['course_elegibility']); $course_content=strip_tags($row['course_content']); echo "<tbody>\n"; echo " <tr>\n"; echo " <th >$count</th>\n"; echo " <td>$course_name</td>\n"; echo " <td>$course_code</td>\n"; echo " <td>$course_duration.Months</td>\n"; echo " <td>$course_elegibility</td>\n"; echo " <td>$course_content</td>\n"; echo " </tr>\n";
echo " </tbody>\n"; $count=$count+1; } echo "</table>\n"; // Free result set mysqli_free_result($result); } else{ echo "Not Available any Courses"; } } else{ echo "ERROR: Could not able to execute $sql. " . mysqli_error($link); } // Close connection mysqli_close($link); ?>
</main>
<?php include 'footer.php'; ?>
<!-- Scroll Top --> <a href="#" id="scroll-top" class="scroll-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>
<!-- Preloader --> <div id="preloader"></div>
<!-- Vendor JS Files --> <script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="assets/vendor/php-email-form/validate.js"></script> <script src="assets/vendor/aos/aos.js"></script> <script src="assets/vendor/purecounter/purecounter_vanilla.js"></script> <script src="assets/vendor/swiper/swiper-bundle.min.js"></script> <script src="assets/vendor/glightbox/js/glightbox.min.js"></script> <script src="assets/vendor/imagesloaded/imagesloaded.pkgd.min.js"></script> <script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<!-- Main JS File --> <script src="assets/js/main.js"></script>
</body>
</html>
|