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

- 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

- 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.

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 ?
PLZZ provide required path of these project to run on PHP
dinie, edit the initialize.php code: at line 6 change “Katerina” to your root directory folder name.
the admin can’t go to index why?
Thank you for this awesome code…
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
use old version of XAMPP
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
my error is:
Problem in selecting database! Contact administrator!
how to solve it???
Plese slove my error…
Problem in selecting database! contact Administrator!
you need to change DB name in initialize.php and config.php.
in what sense should we change? a little explanation please
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
How to go admin panel
hi
its working fine on localhost, but not on live server pls tell me how to solve
please hlep me ,cannot conect to database.contact the adiministrator!!!
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
change function name mysql_connect to mysqli_connect()
CSS file not loaded…
Admin panel how to go??
Hello Help me please – Problem in selecting database! Contact administrator!
If you want to go to admin panel, use your registered email as a username. 🙂
Thanks for assisting our fellow programmer.
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
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
how to open the admin page?