Bakery Online Ordering System Using PHP and MySQL Database

Bakery Online Ordering System Using PHP and MySQL Database

Bakery Online Ordering System Using PHP and MySQL Database is designed for a small bakeshop business.

The main purpose of this Bakery Online Ordering System is to make the ordering transaction fast with accuracy, to keep and secure the order records, to avoid delay of pick up of the ordered products and most especially, is to promote the products.

The following are the company’s goals in reaching the best service they can give to their valued customers.

Below are the following features of the system:

Admin Side

"<yoastmark

  • Products (Add, List, View, Update, Change Photo)
  • Orders (Confirm, Cancel)
  • Category (Add, Update, List)
  • Manage Users (Add, List Update)
  • Reports
  • Login and Logout

Customer Side

online ordering system source code
Bakery Online Ordering System
  • Home
  • Menu (List Products)
  • Customer Care
  • About
  • Cart
  • Categories
  • Place Order
  • Signup
  • Order Details
  • Customer Profile
  • Login and Logout

Download and Install the following system requirements:

  • XAMPP 1.7.4-VC6

If you are looking for a desktop application version of this bakery inventory system, you can click it here.

For all students who need a programmer for your thesis system or anyone who needs a source code in any programming language. You can contact me @ :

Email – [email protected]
Mobile No. – 09305235027 – tnt

You can also visit here the PHP Projects with source code free download if you are looking for some complete PHP projects with source code.

Or if you want a crash course in PHP, you check here the PHP and MySQL Tutorial for beginners in 7 days.

Download the complete online ordering system source code here

Frequently Asked Questions

How does this PHP project work?

Built with vanilla PHP (no framework) and MySQL backend. Standard structure: form HTML, PHP script handlers, MySQL via PDO or mysqli, sessions for auth, Bootstrap for responsive layout. Ready to extend for BSIT capstone scope.

What PHP and MySQL versions does this project require?

Most projects in this batch run on PHP 7.4 to PHP 8.2 with MySQL 5.7+ or MariaDB 10+. A few older projects need PHP 5.6 (deprecated, use XAMPP 7.x). To run: install XAMPP / WAMP / Laragon, extract project to htdocs, import the included .sql file via phpMyAdmin, edit the connection file (usually config.php or db_connect.php) with your DB credentials, browse to the project URL in your browser.

How do I set up the database for this PHP project?

Open phpMyAdmin (http://localhost/phpmyadmin/ on XAMPP), create a new empty database with the name specified in the project’s config.php. Click the Import tab, choose the included .sql file, click Go. Then edit config.php (or includes/connection.php) with: ‘localhost’, your MySQL username (usually ‘root’), your MySQL password (usually blank for XAMPP), and the database name.

Can I use this PHP project for a BSIT capstone or thesis?

Yes, but extend it. A bare CRUD app is too narrow for full capstone scope. Add: user roles via session checks, reports/dashboards (Chart.js + AJAX), PDF exports (TCPDF library), email notifications (PHPMailer), real domain extension (analytics, audit log, multi-branch support). Pair with Chapter 1-5 documentation matching your panel’s rubric.

Why am I getting ‘connection error’ or ‘undefined function mysqli_connect’?

Three common PHP issues: (1) Connection error: Apache + MySQL services not running in XAMPP control panel, OR database name in config.php does not match what you created in phpMyAdmin. (2) ‘undefined function mysqli_connect’: MySQL extension not enabled, in php.ini uncomment extension=mysqli (then restart Apache). (3) ‘No such file or directory’: MySQL socket path wrong, use 127.0.0.1 instead of localhost in the connection string.

Where can I find more PHP projects with source code?

Browse the PHP Projects hub for the full library (300+ vanilla PHP systems). For modern PHP MVC alternatives see Laravel Projects (74 systems) or CodeIgniter Projects (32 systems). For BSIT-focused capstone idea lists see 150 Best Capstone Project Ideas.

Related PHP Projects

26 thoughts on “Bakery Online Ordering System Using PHP and MySQL Database”

  1. Warning: require_once(C:/xampp/htdocs\Katerina\include\config.php): failed to open stream: No such file or directory in C:\xampp\htdocs\orderingdb\include\initialize.php on line 10

    Fatal error: require_once(): Failed opening required ‘C:/xampp/htdocs\Katerina\include\config.php’ (include_path=’C:\xampp\php\PEAR’) in C:\xampp\htdocs\orderingdb\include\initialize.php on line 10

    hi there, why is this appeared when i run the php file on phpmyadmin ?

    • It seems the code is working for you.
      Pls help with my error
      Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\katerina\include\database.php:20 Stack trace: #0 C:\xampp\htdocs\katerina\include\database.php(14): Database->open_connection() #1 C:\xampp\htdocs\katerina\include\database.php(129): Database->__construct() #2 C:\xampp\htdocs\katerina\include\accounts.php(2): require_once(‘C:\\xampp\\htdocs…’) #3 C:\xampp\htdocs\katerina\include\initialize.php(13): require_once(‘C:\\xampp\\htdocs…’) #4 C:\xampp\htdocs\katerina\index.php(2): require_once(‘C:\\xampp\\htdocs…’) #5 {main} thrown in C:\xampp\htdocs\katerina\include\database.php on line 20

  2. Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\katerina\include\database.php:20 Stack trace: #0 C:\xampp\htdocs\katerina\include\database.php(14): Database->open_connection() #1 C:\xampp\htdocs\katerina\include\database.php(129): Database->__construct() #2 C:\xampp\htdocs\katerina\include\accounts.php(2): require_once(‘C:\\xampp\\htdocs…’) #3 C:\xampp\htdocs\katerina\include\initialize.php(13): require_once(‘C:\\xampp\\htdocs…’) #4 C:\xampp\htdocs\katerina\login.php(2): require_once(‘C:\\xampp\\htdocs…’) #5 {main} thrown in C:\xampp\htdocs\katerina\include\database.php on line 20

  3. Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\katerina\include\database.php:20 Stack trace: #0 C:\xampp\htdocs\katerina\include\database.php(14): Database->open_connection() #1 C:\xampp\htdocs\katerina\include\database.php(129): Database->__construct() #2 C:\xampp\htdocs\katerina\include\accounts.php(2): require_once(‘C:\\xampp\\htdocs…’) #3 C:\xampp\htdocs\katerina\include\initialize.php(13): require_once(‘C:\\xampp\\htdocs…’) #4 C:\xampp\htdocs\katerina\index.php(2): require_once(‘C:\\xampp\\htdocs…’) #5 {main} thrown in C:\xampp\htdocs\katerina\include\database.php on line 20

  4. Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\katerina\include\database.php:20 Stack trace: #0 C:\xampp\htdocs\katerina\include\database.php(14): Database->open_connection() #1 C:\xampp\htdocs\katerina\include\database.php(129): Database->__construct() #2 C:\xampp\htdocs\katerina\include\accounts.php(2): require_once(‘C:\\xampp\\htdocs…’) #3 C:\xampp\htdocs\katerina\include\initialize.php(13): require_once(‘C:\\xampp\\htdocs…’) #4 C:\xampp\htdocs\katerina\index.php(2): require_once(‘C:\\xampp\\htdocs…’) #5 {main} thrown in C:\xampp\htdocs\katerina\include\database.php on line 20

  5. Fatal error: Uncaught Error: Function name must be a string in C:\xampp\htdocs\katerina\include\database.php:20 Stack trace: #0 C:\xampp\htdocs\katerina\include\database.php(14): Database->open_connection() #1 C:\xampp\htdocs\katerina\include\database.php(129): Database->__construct() #2 C:\xampp\htdocs\katerina\include\accounts.php(2): require_once(‘C:\\xampp\\htdocs…’) #3 C:\xampp\htdocs\katerina\include\initialize.php(13): require_once(‘C:\\xampp\\htdocs…’) #4 C:\xampp\htdocs\katerina\index.php(2): require_once(‘C:\\xampp\\htdocs…’) #5 {main} thrown in C:\xampp\htdocs\katerina\include\database.php on line 20

  6. When i sign up, the values are not reflected in the database table. Kindly share the php connection script for sign up.
    Moreover there is an error when i click on “ORDER NOW” of any product:
    Fatal error: Uncaught Error: Call to undefined function mysql_query() in E:\xampp\htdocs\katerina\cart\controller.php:32 Stack trace: #0 E:\xampp\htdocs\katerina\cart\controller.php(11): doInsert() #1 {main} thrown in E:\xampp\htdocs\katerina\cart\controller.php on line 32
    Kindly solve this asap. Thanks

Leave a Comment