Attendance Monitoring System Using PHP

Submitted by: 
Language: 
Visitors have accessed this post 23027 times.

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');
  3.  
  4. if (isset($_POST['login'])){
  5.  
  6. $school_number=$_POST['school_number'];
  7.  
  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'];
  15.  
  16. if ($count > 0){
  17. $_SESSION['id']=$row['user_id'];
  18.  
  19. $user_id_query=$row['user_id'];
  20. $user=$row['firstname']." ".$row['middlename']." ".$row['lastname'];
  21.  
  22. mysql_query("INSERT INTO userlog (username,id,date_log)VALUES('$user','$user_id_query',NOW())")or die(mysql_error());
  23.  
  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.


Comments

theres no registration form

a good site which students learn about codings

The database for the system is not complete.

There is no log.php after login. No data displaying page. Can you fix it?

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.