Skip to main content

Simple Online Piggery (Farm) Management System using PHP with Source Code


This simple project is entitled Simple Online Piggery Management System. This system manages the piggery farm's records. The web application was developed using PHP and MySQL Database. The simple system contains CRUD Operation in each list in the database. The system stores the list of pig breeds and details. It also has a feature that can record the pigs of the farm under quarantine and these details include the reason why does the pig is under quarantine.

This project is free to download. Feel Free to download and modify the source code the way you desire. You might find something useful from this project and learn something for your own projects. This project was developed using PHP HTML, CSS, Javascript, and Bootstrap for the design.


  • Login/Logout
  • Dashboard
  • Recent Pigs Added List
  • Manage Breeds (CRUD)
  • Manage Pigs (CRUD)
  • Manage Quarantine (CRUD)

How to Run


  • Download and Install any local web server such as XAMPP/WAMP.
  • Download the provided source code zip file. (download button is located below)


  1. Open your XAMPP/WAMP's Control Panel and start the "Apache" and "MySQL".
  2. Extract the downloaded source code file.
  3. If you are using XAMPP, copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory. And If you are using WAMP, paste it into the "www" directory.
  4. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  5. Create a new database naming "pig".
  6. Import the provided SQL file. The file is known as "pig.sql" located inside the "database" folder.
  7. Browse the Simple Online Piggery Management System in a browser. i.e. http://localhost/pig

System Credential

Username: admin
Password: password


That's it! You can now explore the features and functionalities of this Simple Online Piggery Management System. I hope this simple PHP Project Source Code will help you with what you are looking for and for your future project.

Happy Coding :)

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.


Submitted byTosunPASAon Wed, 03/07/2018 - 17:40

Fatal error: Call to a member function query() on a non-object in D:\xampp\htdocs\orn1\pig\index.php on line 33 i change password sha1 to md5 dont change

Add new comment