Online Leave System

Submitted by: 
Visitors have accessed this post 24064 times.

This project is designed while in attachment at nzoia sugar company.

Employee can apply for leave.
Manager will have privileges to approve leaves.
Add employees.
Edit employee details.

User: admin
Pass: admin

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


What is the username and the password?

I'm getting the following error. Could you kindly help me to resolve?

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\OLS\dbcon.php:2 Stack trace: #0 C:\xampp\htdocs\OLS\index.php(19): require_once() #1 {main} thrown in C:\xampp\htdocs\OLS\dbcon.php on line 2

Thank You.

same with me..
i have try change the content in dbcon.php with this code.

$servername = "localhost";
$username = "root";
$password = "";
$dbname = "jpj_system";

$conn = mysqli_connect($servername, $username, $password, $dbname);

if (!$conn) {

die("Connection failed: " . mysqli_connect_error());


it solved. but then, i get this error.

Fatal error: Uncaught Error: Call to undefined function mysql_query() in C:\xampp\htdocs\ols\Online Leave System\index.php:38 Stack trace: #0 {main} thrown in C:\xampp\htdocs\ols\Online Leave System\index.php on line 38

Please help me

This system is okey.

very good help alot

thanks alot this is awesome work made easier

thank you sourcecodester u made my work easier

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.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.