Skip to main content

Attendance Monitoring System Using PHP

If you are looking for Attendance Monitoring System Using PHP then you are at the right place. This is a full source code. It has the admin side to view the data and the member side to entering their School ID Number to have their attendance and it will see a record on the admin side. This program works by entering the school id number of the user, after that it will show their image and full name and it will save the data automatically in the database. And you can view your attendance on the admin side. Sample Codes HTML Form Field This code where the user entering their School ID Number.
  1. <form action="" method="post">
  2. <h1 class="blink_text">Welcome</h1>
  3. <div>
  4. <input type="text" class="form-control" name="school_number" style="height:45px;" placeholder="School ID Number....." autofocus required />
  5. </div>
  6. <div class="clearfix"></div>
  7. <br />
  8. <div>
  9. <button class="btn btn-primary submit" type="submit" name="log_in"><i class="glyphicon glyphicon-check"></i> Enter</button>
  10. </div>
  11. <div class="clearfix"></div>
  12. </form>
PHP Source Code This PHP query used to save the attendance date of the user in the database.
  1. <?php
  2. include('dbcon.php');
  4. if (isset($_POST['login'])){
  6. $school_number=$_POST['school_number'];
  8. $login_query=mysql_query("select * from member where school_number='$school_number' and status = 'InActive' ");
  9. $count=mysql_num_rows($login_query);
  10. $row=mysql_fetch_array($login_query);
  11. $firstname=$row['lastname'];
  12. $middlename=$row['middlename'];
  13. $middlename=$row['lastname'];
  14. $user_id=$row['user_id'];
  16. if ($count > 0){
  17. $_SESSION['id']=$row['user_id'];
  19. $user_id_query=$row['user_id'];
  20. $user=$row['firstname']." ".$row['middlename']." ".$row['lastname'];
  22. mysql_query("INSERT INTO userlog (username,id,date_log)VALUES('$user','$user_id_query',NOW())")or die(mysql_error());
  24. echo "<script>window.location='log.php'</script>";
  25. }else{
  26. echo "<div class='alert alert-error'>".'No match found for the School ID Number or Your Not Active Member Yet'."</div>";
  27. ?>
  28. <?php }
  29. }
  30. ?>
In the image below, where you can see the data after the user entering their School ID Number in the system. Admin Side Kindly click the "Download Code" for the full source code. Share us your thoughts and comments below. Thank you so much for dropping by and reading this tutorial post. For more updates, don’t hesitate and feel free to visit this website more often and please share this with your friends or email me at [email protected]. Practice Coding. Thank you very much.


Submitted bykristene (not verified)on Sun, 08/27/2017 - 08:57

a good site which students learn about codings
Submitted byDavid McQarphui (not verified)on Wed, 11/22/2017 - 00:57

The database for the system is not complete.

Add new comment