Download code _ PHP-Based Web Student Clearance System
PHP-Based Web Student Clearance SystemÂ
Overview
The Web-Based Student Clearance System is an online application designed to manage student clearance in universities. It allows multiple user roles to access the system, making it easier for universities to store and retrieve student clearance records. The system features a simple and user-friendly interface.
About the Student Clearance System
This system helps students track and pay their outstanding fees. Once students clear their payments and receive approvals from the hostel, sports directorate, and student affairs department, their clearance status will be marked as “Cleared” on their dashboard. After completing all clearances, students can print their clearance letter for NYSC and graduation.
The Admin Users manage the system by handling student lists, user roles, and fee structures for each department and faculty.
Features
Admin Panel
- Login and Logout
- Manage Users
- Register New Students
- View and Manage Student Lists
- Handle Student Clearance Records
- Set and Update Fees
- View Payment History
- Change Password
Student Panel
- Login and Logout
- Dashboard View
- Pay Outstanding Fees
- View Payment History
- Update Profile Photo
- Change Password
How to Install and Run the System
Requirements
- Install a local web server like XAMPP.
- Download the provided source code.
Installation Steps
- Open XAMPP Control Panel and start Apache and MySQL.
- Extract the downloaded source code.
- Copy the extracted folder and paste it into the htdocs directory of XAMPP.
- Open a browser and go to phpMyAdmin (http://localhost/phpmyadmin).
- Create a new database named student_clearance.
- Import the provided SQL file (student_clearance.sql) from the db folder.
- Open the system in a browser:
Admin Login Details
- Username: admin
- Password: admin123
This system makes student clearance easy and efficient for universities, helping both students and administrators manage payments and clearance records smoothly.
index PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 |
<?php session_start(); error_reporting(0); include('connect.php'); if(empty($_SESSION['matric_no'])) { header("Location: login.php"); } else{ } //get neccesary session details $ID = $_SESSION["ID"]; $matric_no = $_SESSION["matric_no"]; $dept = $_SESSION['dept']; $faculty = $_SESSION['faculty']; $sql = "select SUM(amount) as tot_fee from fee where faculty='$faculty' AND dept='$dept'"; $result = $conn->query($sql); $row_fee = mysqli_fetch_array($result); $tot_fee=$row_fee['tot_fee']; //Get outstanding payment etc $sql = "select SUM(amount) as tot_pay from payment where studentID='$ID'"; $result = $conn->query($sql); $rowpayment = mysqli_fetch_array($result); $tot_pay=$rowpayment['tot_pay']; $outstanding_fee=$tot_fee-$tot_pay; $sql = "select * from students where matric_no='$matric_no'"; $result = $conn->query($sql); $rowaccess = mysqli_fetch_array($result); $hostel = $rowaccess["is_hostel_approved"]; $sport = $rowaccess['is_sport_approved']; $stud_affairs = $rowaccess['is_stud_affairs_approved']; date_default_timezone_set('Africa/Lagos'); $current_date = date('Y-m-d H:i:s'); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Student Dashboard | Online clearance System</title> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="font-awesome/css/font-awesome.css" rel="stylesheet"> <!-- Morris --> <link href="css/plugins/morris/morris-0.4.3.min.css" rel="stylesheet"> <!-- Gritter --> <link href="js/plugins/gritter/jquery.gritter.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <link rel="icon" type="image/png" sizes="16x16" href="images/favicon.png"> <style type="text/css"> <!-- .style1 {color: #000000} .style2 {color: #FF0000} --> </style> </head> <body> <div id="wrapper"> <nav class="navbar-default navbar-static-side" role="navigation"> <div class="sidebar-collapse"> <ul class="nav metismenu" id="side-menu"> <li class="nav-header"> <div class="dropdown profile-element"> <span> <img src="<?php echo $rowaccess['photo']; ?>" alt="image" width="142" height="153" class="img-circle" /> </span> <a data-toggle="dropdown" class="dropdown-toggle" href="#"> <span class="clear"><span class="text-muted text-xs block">Matric No:<?php echo $rowaccess['matric_no']; ?> <b class="caret"></b></span> </span> </a> <ul class="dropdown-menu animated fadeInRight m-t-xs"> <li><a href="logout.php">Logout</a></li> </ul> </div> <?php include('sidebar.php'); ?> </ul> </div> </nav> <div id="page-wrapper" class="gray-bg"> <div class="row border-bottom"> <nav class="navbar navbar-static-top white-bg" role="navigation" style="margin-bottom: 0"> <div class="navbar-header"> <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a> </div> <ul class="nav navbar-top-links navbar-right"> <li> <span class="m-r-sm text-muted welcome-message">Welcome <?php echo $rowaccess['fullname']; ?></span> </li> <li class="dropdown"> <li> <a href="logout.php"> <i class="fa fa-sign-out"></i> Log out </a> </li> </ul> </nav> </div> <div class="wrapper wrapper-content"> <div class="row"> <?php $query = "SELECT * FROM students "; $result = mysqli_query($conn, $query); if ($result) { // it return number of rows in the table. $row_students = mysqli_num_rows($result); } $sql = "select SUM(amount) as tot_fee from fee where faculty='$faculty' AND dept='$dept'"; $result = $conn->query($sql); $row_fee = mysqli_fetch_array($result); $tot_fee=$row_fee['tot_fee']; ?> <div class="col-lg-3"> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5><span class="label label-primary pull-right">Total Fee </span> </h5> </div> <div class="ibox-content"> <h3 class="no-margins">NGN<?php echo number_format((float) $tot_fee ,2); ?> </h3> <small> </small> </div> </div> </div> <div class="col-lg-3"> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5><span class="label label-secondary pull-right">Amount Paid</span> </h5> </div> <div class="ibox-content"> <h3 class="no-margins">NGN<?php echo number_format((float) $tot_pay ,2); ?></h3> <small> </small> </div> </div> </div> <div class="col-lg-3"> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5><span class="label label-info pull-right">Status</span> </h5> </div> <div class="ibox-content"> <h3 class="no-margins"> <?php if (($outstanding_fee)=="0" && ($sport)=="1" &&($hostel)=="1" && ($stud_affairs)=="1") { ?> <div align="center"><i class="fa fa-check-circle" style="font-size:28px;color:green"></i> <?php echo "Cleared"; ?></div> <?php } else {?> <div align="left"><i class="fa fa-times-circle" style="font-size:28px;color:orange"></i> <?php echo "Pending"; ?></div> <?php } ?> </h3> <p class="no-margins"> </p> <?php if (($outstanding_fee)=="0" && ($sport)=="1" &&($hostel)=="1" && ($stud_affairs)=="1") { ?> <span class="style2"><small> <a href="letter.php" target="_blank">Print Clearance Letter</a></small></span> <?php } ?> </div> </div> </div> <div class="col-lg-3"> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5><span class="label label-success pull-right">Outstanding fee</span> </h5> </div> <div class="ibox-content"> <h3 class="no-margins">NGN<?php echo number_format((float) $outstanding_fee ,2); ?> </h3> <small> </small> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <p> </p> <p> </p> <p> </p> <table width="1201" height="341" align="center"> <tr> <td width="1237"><table border="0" align="center" class="table table-hover no-margins"> <thead> <tr> <th width="30%"><div align="center"><span class="style1">Fee </span></div></th> <th width="30%"><div align="center"><span class="style1">Hostel</span></div></th> <th width="63%"><div align="center" class="style1">Sport</div></th> <th width="63%"><div align="center" class="style1">Student Affairs</div></th> </tr> </thead> <tbody> <tr> <td> <?php if (($outstanding_fee)==(("0"))) { ?> <div align="center"><span class="label label-primary">Cleared</span> </div> <?php } else {?> <div align="center"><span class="label label-warning">Pending</span> </div> <?php } ?> </td> <td> <?php if (($rowaccess['is_hostel_approved'])==(("0"))) { ?> <div align="center"><span class="label label-warning">Pending</span> </div> <?php } else {?> <div align="center"><span class="label label-primary">Cleared</span> </div> <?php } ?> </td> <td> <?php if (($rowaccess['is_sport_approved'])==(("0"))) { ?> <div align="center"><span class="label label-warning">Pending</span> </div> <?php } else {?> <div align="center"><span class="label label-primary">Cleared</span> </div> <?php } ?> </td> <td> <?php if (($rowaccess['is_stud_affairs_approved'])==(("0"))) { ?> <div align="center"><span class="label label-warning">Pending</span> </div> <?php } else {?> <div align="center"><span class="label label-primary">Cleared</span> </div> <?php } ?> </td> </tr> </tbody> </table></td> </tr> </table> <p align="center"></p> <div class="row"> </p> </div> </div> </div> <div class="footer"> <div> <?php include('footer.php'); ?> </div> </div> </div> </div> <!-- Mainly scripts --> <script src="js/jquery-2.1.1.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script> <!-- Flot --> <script src="js/plugins/flot/jquery.flot.js"></script> <script src="js/plugins/flot/jquery.flot.tooltip.min.js"></script> <script src="js/plugins/flot/jquery.flot.spline.js"></script> <script src="js/plugins/flot/jquery.flot.resize.js"></script> <script src="js/plugins/flot/jquery.flot.pie.js"></script> <script src="js/plugins/flot/jquery.flot.symbol.js"></script> <script src="js/plugins/flot/jquery.flot.time.js"></script> <!-- Peity --> <script src="js/plugins/peity/jquery.peity.min.js"></script> <script src="js/demo/peity-demo.js"></script> <!-- Custom and plugin javascript --> <script src="js/inspinia.js"></script> <script src="js/plugins/pace/pace.min.js"></script> <!-- jQuery UI --> <script src="js/plugins/jquery-ui/jquery-ui.min.js"></script> <!-- Jvectormap --> <script src="js/plugins/jvectormap/jquery-jvectormap-2.0.2.min.js"></script> <script src="js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script> <!-- EayPIE --> <script src="js/plugins/easypiechart/jquery.easypiechart.js"></script> <!-- Sparkline --> <script src="js/plugins/sparkline/jquery.sparkline.min.js"></script> <!-- Sparkline demo data --> <script src="js/demo/sparkline-demo.js"></script> <script> $(document).ready(function() { $('.chart').easyPieChart({ barColor: '#f8ac59', // scaleColor: false, scaleLength: 5, lineWidth: 4, size: 80 }); $('.chart2').easyPieChart({ barColor: '#1c84c6', // scaleColor: false, scaleLength: 5, lineWidth: 4, size: 80 }); var data2 = [ [gd(2012, 1, 1), 7], [gd(2012, 1, 2), 6], [gd(2012, 1, 3), 4], [gd(2012, 1, 4), 8], [gd(2012, 1, 5), 9], [gd(2012, 1, 6), 7], [gd(2012, 1, 7), 5], [gd(2012, 1, 8), 4], [gd(2012, 1, 9), 7], [gd(2012, 1, 10), 8], [gd(2012, 1, 11), 9], [gd(2012, 1, 12), 6], [gd(2012, 1, 13), 4], [gd(2012, 1, 14), 5], [gd(2012, 1, 15), 11], [gd(2012, 1, 16), 8], [gd(2012, 1, 17), 8], [gd(2012, 1, 18), 11], [gd(2012, 1, 19), 11], [gd(2012, 1, 20), 6], [gd(2012, 1, 21), 6], [gd(2012, 1, 22), 8], [gd(2012, 1, 23), 11], [gd(2012, 1, 24), 13], [gd(2012, 1, 25), 7], [gd(2012, 1, 26), 9], [gd(2012, 1, 27), 9], [gd(2012, 1, 28), 8], [gd(2012, 1, 29), 5], [gd(2012, 1, 30), 8], [gd(2012, 1, 31), 25] ]; var data3 = [ [gd(2012, 1, 1), 800], [gd(2012, 1, 2), 500], [gd(2012, 1, 3), 600], [gd(2012, 1, 4), 700], [gd(2012, 1, 5), 500], [gd(2012, 1, 6), 456], [gd(2012, 1, 7), 800], [gd(2012, 1, 8), 589], [gd(2012, 1, 9), 467], [gd(2012, 1, 10), 876], [gd(2012, 1, 11), 689], [gd(2012, 1, 12), 700], [gd(2012, 1, 13), 500], [gd(2012, 1, 14), 600], [gd(2012, 1, 15), 700], [gd(2012, 1, 16), 786], [gd(2012, 1, 17), 345], [gd(2012, 1, 18), 888], [gd(2012, 1, 19), 888], [gd(2012, 1, 20), 888], [gd(2012, 1, 21), 987], [gd(2012, 1, 22), 444], [gd(2012, 1, 23), 999], [gd(2012, 1, 24), 567], [gd(2012, 1, 25), 786], [gd(2012, 1, 26), 666], [gd(2012, 1, 27), 888], [gd(2012, 1, 28), 900], [gd(2012, 1, 29), 178], [gd(2012, 1, 30), 555], [gd(2012, 1, 31), 993] ]; var dataset = [ { label: "Number of orders", data: data3, color: "#1ab394", bars: { show: true, align: "center", barWidth: 24 * 60 * 60 * 600, lineWidth:0 } }, { label: "Payments", data: data2, yaxis: 2, color: "#464f88", lines: { lineWidth:1, show: true, fill: true, fillColor: { colors: [{ opacity: 0.2 }, { opacity: 0.2 }] } }, splines: { show: false, tension: 0.6, lineWidth: 1, fill: 0.1 }, } ]; var options = { xaxis: { mode: "time", tickSize: [3, "day"], tickLength: 0, axisLabel: "Date", axisLabelUseCanvas: true, axisLabelFontSizePixels: 12, axisLabelFontFamily: 'Arial', axisLabelPadding: 10, color: "#d5d5d5" }, yaxes: [{ position: "left", max: 1070, color: "#d5d5d5", axisLabelUseCanvas: true, axisLabelFontSizePixels: 12, axisLabelFontFamily: 'Arial', axisLabelPadding: 3 }, { position: "right", clolor: "#d5d5d5", axisLabelUseCanvas: true, axisLabelFontSizePixels: 12, axisLabelFontFamily: ' Arial', axisLabelPadding: 67 } ], legend: { noColumns: 1, labelBoxBorderColor: "#000000", position: "nw" }, grid: { hoverable: false, borderWidth: 0 } }; function gd(year, month, day) { return new Date(year, month - 1, day).getTime(); } var previousPoint = null, previousLabel = null; $.plot($("#flot-dashboard-chart"), dataset, options); var mapData = { "US": 298, "SA": 200, "DE": 220, "FR": 540, "CN": 120, "AU": 760, "BR": 550, "IN": 200, "GB": 120, }; $('#world-map').vectorMap({ map: 'world_mill_en', backgroundColor: "transparent", regionStyle: { initial: { fill: '#e4e4e4', "fill-opacity": 0.9, stroke: 'none', "stroke-width": 0, "stroke-opacity": 0 } }, series: { regions: [{ values: mapData, scale: ["#1ab394", "#22d6b1"], normalizeFunction: 'polynomial' }] }, }); }); </script> </body> </html> |
login PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
<?php session_start(); error_reporting(1); include('connect2.php'); if(isset($_POST['btnlogin'])) { if($_POST['txtmatric_no'] != "" || $_POST['txtpassword'] != ""){ $matric_no =$_POST['txtmatric_no']; $password = $_POST['txtpassword']; $sql = "SELECT * FROM `students` WHERE `matric_no`=? AND `password`=? "; $query = $dbh->prepare($sql); $query->execute(array($matric_no,$password)); $row = $query->rowCount(); $fetch = $query->fetch(); if($row > 0) { // $_SESSION['matric_no'] = $fetch['matric_no']; //$_SESSION['dept'] = $fetch['dept']; //$_SESSION['faculty'] = $fetch['faculty']; // $_SESSION['session'] = $fetch['session']; // $_SESSION['ID'] = $fetch['ID']; //Get Get all session value foreach($fetch as $items => $v){ if(!is_numeric($items)) $_SESSION[$items] = $v; } header("Location: index.php"); } else{ $_SESSION['error']=' Invalid Matric No/Password'; } }else{ $_SESSION['error']=' Must Fill-in All Fields'; } } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>login Form| online Clearance system</title> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="font-awesome/css/font-awesome.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <link rel="icon" type="image/png" sizes="16x16" href="images/favicon.png"> <style type="text/css"> <!-- .style3 { color: #FF0000; font-weight: bold; font-size: 24px; } .style4 {color: #FF0000} --> </style> </head> <body class="gray-bg"> <div class="middle-box text-center loginscreen animated fadeInDown"> <div> <div> <h5 class="style3">Online Student Clearance system..</h5> <h1 class="logo-name"><a href="index.php"><img src="images/logo.png" alt="onlineclearance" width="246" height="111" border="0"></a></h1> </div> <form class="m-t" role="form" method= "POST" action=""> <div class="form-group"> <input type="text" name="txtmatric_no" class="form-control" placeholder="Matric No" required=""> </div> <div class="form-group"> <input type="password" name="txtpassword" class="form-control" placeholder="Password" required=""> </div> <button type="submit" name="btnlogin" class="btn btn-primary block full-width m-b">Login</button> <a href="#"><small>Forgot password?</small></a> <p class="text-muted text-center"> </p> </form> <p class="m-t"></p> </div> </div> <?Php include('footer.php');?> <!-- Mainly scripts --> <script src="js/jquery-2.1.1.js"></script> <script src="js/bootstrap.min.js"></script> <link rel="stylesheet" href="popup_style.css"> <?php if(!empty($_SESSION['success'])) { ?> <div class="popup popup--icon -success js_success-popup popup--visible"> <div class="popup__background"></div> <div class="popup__content"> <h3 class="popup__content__title"> <strong>Success</strong> </h1> <p><?php echo $_SESSION['success']; ?></p> <p> <button class="button button--success" data-for="js_success-popup">Close</button> </p> </div> </div> <?php unset($_SESSION["success"]); } ?> <?php if(!empty($_SESSION['error'])) { ?> <div class="popup popup--icon -error js_error-popup popup--visible"> <div class="popup__background"></div> <div class="popup__content"> <h3 class="popup__content__title"> <strong>Error</strong> </h1> <p><?php echo $_SESSION['error']; ?></p> <p> <button class="button button--error" data-for="js_error-popup">Close</button> </p> </div> </div> <?php unset($_SESSION["error"]); } ?> <script> var addButtonTrigger = function addButtonTrigger(el) { el.addEventListener('click', function () { var popupEl = document.querySelector('.' + el.dataset.for); popupEl.classList.toggle('popup--visible'); }); }; Array.from(document.querySelectorAll('button[data-for]')). forEach(addButtonTrigger); </script> </body> </html> |
student_clearance SQL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
-- phpMyAdmin SQL Dump -- version 5.2.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 17, 2022 at 02:34 PM -- Server version: 10.4.24-MariaDB -- PHP Version: 8.1.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `student_clearance` -- -- -------------------------------------------------------- -- -- Table structure for table `admin` -- CREATE TABLE `admin` ( `ID` int(3) NOT NULL, `username` varchar(15) NOT NULL, `password` varchar(15) NOT NULL, `designation` varchar(25) NOT NULL, `fullname` varchar(30) NOT NULL, `email` varchar(40) NOT NULL, `status` varchar(10) NOT NULL, `photo` varchar(300) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `admin` -- INSERT INTO `admin` (`ID`, `username`, `password`, `designation`, `fullname`, `email`, `status`, `photo`) VALUES (4, 'admin', 'admin123', 'Admin', 'EKE, EMMANUEL EFA-EVAL', 'eva_2012@gmail.com', 'Active', 'uploads/default.jpg'); -- -------------------------------------------------------- -- -- Table structure for table `fee` -- CREATE TABLE `fee` ( `ID` int(3) NOT NULL, `session` varchar(9) NOT NULL, `faculty` varchar(40) NOT NULL, `dept` varchar(40) NOT NULL, `amount` varchar(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `fee` -- INSERT INTO `fee` (`ID`, `session`, `faculty`, `dept`, `amount`) VALUES (14, '2020/2021', 'Science', 'Computer Science', '100000'); -- -------------------------------------------------------- -- -- Table structure for table `payment` -- CREATE TABLE `payment` ( `ID` int(4) NOT NULL, `feeID` varchar(25) NOT NULL, `studentID` varchar(25) NOT NULL, `amount` varchar(25) NOT NULL, `datepaid` varchar(25) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `payment` -- INSERT INTO `payment` (`ID`, `feeID`, `studentID`, `amount`, `datepaid`) VALUES (24, '8FAC46R2579D', '8', '20000', '2022-08-17 13:24:57'), (25, 'DEAR92C6734B', '8', '80000', '2022-08-17 13:25:09'); -- -------------------------------------------------------- -- -- Table structure for table `students` -- CREATE TABLE `students` ( `ID` int(3) NOT NULL, `fullname` varchar(50) NOT NULL, `matric_no` varchar(15) NOT NULL, `password` varchar(15) NOT NULL, `session` varchar(10) NOT NULL, `faculty` varchar(30) NOT NULL, `dept` varchar(44) NOT NULL, `phone` varchar(12) NOT NULL, `photo` varchar(400) NOT NULL, `is_hostel_approved` int(3) NOT NULL, `is_sport_approved` int(3) NOT NULL, `is_stud_affairs_approved` int(3) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `students` -- INSERT INTO `students` (`ID`, `fullname`, `matric_no`, `password`, `session`, `faculty`, `dept`, `phone`, `photo`, `is_hostel_approved`, `is_sport_approved`, `is_stud_affairs_approved`) VALUES (8, 'Eke Emmanuel Efa-eval', '18/132010', '11111111', '2021/2022', 'Science', 'Computer Science', '08067361023', 'uploads/eva.jpeg', 1, 1, 1); -- -------------------------------------------------------- -- -- Table structure for table `tblsession` -- CREATE TABLE `tblsession` ( `ID` int(3) NOT NULL, `session` varchar(9) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tblsession` -- INSERT INTO `tblsession` (`ID`, `session`) VALUES (1, '2020/2021'), (2, '2021/2022'); -- -- Indexes for dumped tables -- -- -- Indexes for table `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`ID`); -- -- Indexes for table `fee` -- ALTER TABLE `fee` ADD PRIMARY KEY (`ID`); -- -- Indexes for table `payment` -- ALTER TABLE `payment` ADD PRIMARY KEY (`ID`); -- -- Indexes for table `students` -- ALTER TABLE `students` ADD PRIMARY KEY (`ID`); -- -- Indexes for table `tblsession` -- ALTER TABLE `tblsession` ADD PRIMARY KEY (`ID`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `admin` -- ALTER TABLE `admin` MODIFY `ID` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `fee` -- ALTER TABLE `fee` MODIFY `ID` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `payment` -- ALTER TABLE `payment` MODIFY `ID` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- AUTO_INCREMENT for table `students` -- ALTER TABLE `students` MODIFY `ID` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `tblsession` -- ALTER TABLE `tblsession` MODIFY `ID` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |