Simple Online Bidding System using PHP/MySQLi with Source Code


Project: Simple Online Bidding System using PHP/MySQLi with Source Code


The Simple Online Bidding System is a simple PHP project that provides a bidding organization or company's possible buyers bid with others within a period of time. This project only presents a minimum or small scope only and the main purpose of this project is to create a bidding process online. The system stores the category of the product and the products for auction. When creating the product for auction, the system requires the date and time which is used to automatically detect the buyer who wins in the bidding. 

The Simple Online Bidding System was develop using HTML, PHP/MySQLi, JavaScript (Ajax/jQuery), CSS, and Bootstrap for the styling. The system has 2 sides of the user interface, one is for the subscriber or the possible buyer side and one is the admin side which is the side where the management will manage the data in the project.


Admin side

  • Login Page
    • The page where the system admin or management staff submit their system credentials to access the data and features of the system.
  • Home Page
    • The page where the system admin or redirected by default when logging into the system.
  • Category Page
    • The page where the product categories are a list and managed.
  • Products Page
    • The page where the system admin or staff manages the list of products for auction or bidding.
  • Bids Page
    • The page where the list of bids is displayed along with their status.
  • User Page
    • The page where the system admin manages the list of system users.
  • System Settings Page
    • The page where the system admin manages the system information.

Subscribers or User Page

  • Home page
    • The page where the users or subscribers will be redirected by default when browsing the bidding system website.
  • About Page
    • The page where the company's/website's about page shown.
  • Login Modal
    • The popup modal on the website where the user will submit their system credential in order to use the bidding feature of the website.
  • Signup Modal
    • ​​​​​​​The popup modal where the new subscriber or user creates their account.
  • Product View Modal
    • ​​​​​​​The modal that displays all the data of the product for bidding. This is where the subscriber or user bids for their desired product.

How to Run

  1. Download the source code and extract the zip file.
  2. Download or set up any local web server that runs PHP script.
  3. Open the web-server database and create a new database name it bidding_db.
  4. Import the SQL file located in the database folder of the source code.
  5. Copy and paste the source code to the location where your local web server accessing your local projects. Example for XAMPP('C:\xampp\htdocs')
  6. Open a web browser and browse the project. E.g [http://localhost/simple-online-bidding-system] for the website and  [http://localhost/simple-online-bidding-system/admin]

Admin Default Access

Username: admin

Password: admin123

I hope that this Simple Online Bidding System project will help you with what you are looking for. This project is for education purposes only. Feel free to download and modify the source code to have an actual experience with the features and I hope the source code can help you with your projects.

Explore more on this website for more source codes and tutorials.


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.


Warning: mysqli::__construct(): (HY000/1049): Unknown database 'bidding_db' in C:\XAMP\htdocs\bidding\admin\db_connect.php on line 3 Fatal error: Uncaught Error: mysqli object is already closed in C:\XAMP\htdocs\bidding\admin\login.php:8 Stack trace: #0 C:\XAMP\htdocs\bidding\admin\login.php(8): mysqli->query('SELECT * FROM `...') #1 {main} thrown in C:\XAMP\htdocs\bidding\admin\login.php on line 8
Submitted byJust a checker..... (not verified)on Thu, 04/08/2021 - 05:39

Nice soft but needs to be reworked for php7 and up many warnings and some errors now...
Submitted byHamza Ilyas (not verified)on Wed, 09/21/2022 - 04:17

In reply to by Onkar Bhule (not verified)

DId you find the solution? I'm facing 2 issues: 01- Products are not showing on the home page. 02- Unable to create a new Product
Submitted byLiliii (not verified)on Sun, 05/15/2022 - 17:02

I'm not able to view products when clicking on the VIew Please let me know the solution
Submitted bySubhajit bhunia (not verified)on Tue, 12/13/2022 - 20:48

Good one, i modifying that more features and reverse bidding logic, but when the first bidder rebid it always shows your bid amount is lowest.

Hello, You have to login localhost/bidding(whatever your folder name)/admin/login.php page and then enter the authentification informations
Submitted byYennin (not verified)on Wed, 08/09/2023 - 06:42

Unable to enter admin panel, it says user doesn´t exist
Submitted byjeyri (not verified)on Sun, 10/01/2023 - 14:05

: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order by name asc' at line 1 in C:\xampp\htdocs\bidding\home.php:54 Stack trace: #0 C:\xampp\htdocs\bidding\home.php(54): mysqli->query('SELECT * FROM p...') #1 C:\xampp\htdocs\bidding\index.php(52): include('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\bidding\home.php on line 54 help me please

Add new comment