
Learn to build a complete PHP and MySQL food ordering ecommerce store, including cart, checkout, PayPal payments, categories, products, and a secure admin panel.
Install and configure the Zen server (Xampp) on a virtual machine, select php 7.4.1, and start Apache and MySQL via the control panel.
Install Visual Studio Code on Windows from the official site, run the installer, and launch to start coding with me. Other editors like Sublime or Notepad++ also work.
Explore the integrated design for a PHP MySQL food ordering store, navigate categories and product pages, manage the cart, and implement register, login, checkout, billing, and order history.
Create a config.php to define host, db name, user, and password, and establish a PDO MySQL connection. Enable PDO error mode and test the connection.
Learn to register users in a PHP MySQL food store by building a users table, validating inputs, hashing passwords with password_hash, using prepared statements, and redirecting on success.
Create a PHP and MySQL login page using PDO, validate email and password, hash and verify passwords, handle errors, and redirect with JavaScript within a register-based auth flow.
Learn to start and manage PHP sessions, set session variables from the database, and conditionally render header navigation for logged-in versus guest users, including login, logout, and cart access.
Display dynamic categories on the home page by fetching from a categories table and using a session avatar, while admins manage category data with images, icons, and descriptions.
Display and dynamically render categories on the shop page by pulling vegetables, fruits, fish, and frozen foods data and icons from assets, with trimmed descriptions.
Insert category IDs into the products table and populate vegetables and meats categories, then display two available products with images and prices on the most-wanted section.
Display and link products by category on the shop page using category IDs, showing image, expiration date, title, price, and add-to-cart with a detail page link.
This video shows displaying fishes and fruits on the shop page of a php mysql food ordering ecommerce store, using queries to fetch products by category and build product cards.
Display a dynamic product details page by using the id in the query to fetch active product, show its image, description, price, and a quantity input with add to cart.
Fetch and display related products from the current product's category in a PHP MySQL food ordering ecommerce store, excluding the current item and using dynamic queries.
Implement a cart add flow with ajax and jquery, capturing product id, title, image, price, and quantity, storing user id from session via php and mysql.
Learn to prevent duplicate cart entries by validating on both front-end and back-end, using user id and product id, and disabling the add-to-cart button when already in the cart.
Display the user's cart items by querying the cart table by session user id, showing each product image, title, price, and quantity with a subtotal and update options.
Learn to calculate and display dynamic cart subtotals by multiplying product price by quantity using jQuery, updating the subtotal for each item and reflecting changes with backend code.
Learn how to update cart quantities and subtotals in a PHP and MySQL food ordering store, wire quantity inputs on the product details page, and refresh the cart table.
Update cart items via ajax in PHP MySQL store; modify quantity and subtotal in the cart table, send post data, and refresh the display after a successful update.
Delete cart items with ajax and PHP by sending the item id to a delete endpoint, performing the database delete, and refreshing only the page body.
Update the cart's total price by summing each subtotal price with a jQuery function and display the result as a dollar value.
Update the cart badge by counting a user’s items in the header. Use a SQL query with the user_id to alias the count as number_products and display it.
Finish the cart by capturing the total price into a session, then submit an HTML checkout form to the PHP flow, validating the cart isn't empty.
Implement a session-based cart and checkout in a PHP MySQL food ordering store, including subtotal and shipping calculations and PayPal payment integration.
Build and process the checkout billing form in a php mysql food ordering store, create the orders table with user_id and price, and calculate the full total including shipping.
Master the PayPal payment flow for a PHP MySQL food ordering store, including sandbox setup, embedding the PayPal button, and updating order status through payment.
Integrate PayPal checkout in a PHP MySQL food ordering store, configure the cart flow, test with the sandbox, and verify a successful order and data insertion on the success page.
Create a customizable PHP PayPal success page, display post-payment confirmation, automatically clear the cart by user session, and return customers to the home page with the order data shown.
Learn to validate user sessions across product and checkout pages, redirect unauthenticated users to the index, and secure cart and checkout flows in a PHP MySQL food ordering store.
Limit user access to checkout and payment pages by validating user data and the cart state, ensuring users can only proceed after adding items.
Display user transactions by fetching orders using the session user ID, render list of transactions with id, date, total price, and status, and show a no-orders message when none exist.
Learn to build a settings page for updating user profile data, including name, address, city, postal code, and phone, with session and ID validation to protect user access.
Update user data in a PHP MySQL food ordering store by processing a post form and running an update query with the user ID, then return to the index page.
Design and code an admin panel to manage admins, categories, products, and orders, and transform the frontend design into a full backend with login and admin creation.
Build and test an admin login workflow by adding a header and footer to the admin panel, creating an admins table, and verifying passwords with hashing.
Implement admin login with PHP sessions, display navigation based on session data, and route home, admin categories, products, and orders in a PHP MySQL ecommerce store.
Implement a secure logout with session_start, unset, and session_destroy, then redirect to the admin login and enforce access control on all pages so logged-out users reach the login.
Create new admins by entering email and password in a PHP-based form, validate inputs, insert into the admins table, and access the admin dashboard after login.
Learn to display admins in the PHP and MySQL admin panel for a complete food ordering ecommerce store, showing admin name, email, and id.
Display live stats on the admin index page for admins, categories, orders, and products. Use count queries with aliases and echo the results to show the dashboard numbers.
Show how to display categories on the index page by fetching data from the categories table with PHP, and iterate with foreach to display names and update links.
Delete a category by retrieving its id from the URL and executing a delete query against categories, then redirect to the show categories page.
Create and manage categories in the admin panel, including a form for name, icon, description, and image upload, with input checks and database insertion.
Update categories in a php mysql food ordering ecommerce store by editing category data through a form, using ID to fetch and update name, icon, and description while validating inputs.
Display and manage products in a PHP MySQL food ordering store by loading product data from the database, enabling status toggles and deletions for admin management.
Toggle product availability in PHP and MySQL by updating the status field in the products table from 0 (unavailable) to 1 (available), with front-end admin buttons reflecting the change.
Create products in the admin panel using a PHP form that collects title, price, description, category, expiration date, and image, validates inputs, fetches categories, and inserts into the products table.
Implement a delete product feature in PHP by copying the pattern from categories, deleting from the products table by id, and returning to the products admin page.
Delete a product and its image in a PHP MySQL ecommerce store using the unlink function, removing files from image_product and image_category to prevent clutter.
Are you ready for a treat? Ready for a fantastic journey with me? In this course, you will get to discover the infinite possibilities of PHP and MySQL. In this course, I will show you how to build an amazing e-commerce store from start to finish. After you complete this course, you should have something solid, awesome, and legit to show off on your CV.
Here is what we are going to build. First of all, I am going to show you how to build a full authentication system with confirm password functionality and that's after creating our config file. After that, we are going to deal with showing data of products and categories neatly on our website and we are going to create a shop page. Now to the cart system where we are going to implement inserting, updating, showing, and deleting products and that's going to be done using Ajax-JQuery. And then to another hardcore part of this project and that is integrating Paypal inside our app. I am going to show you not to only integrate it but also to pay for your first product using it by setting up buyer and merchant accounts. We will see how these whole PayPal configurations work under the hood and before that, I am going to show how to place your first order by creating the checkout page. The last part of the user's side is to allow the user to see his orders and update his data and I am going to show you how to do this securely. In the second part of this course, we are going to take care of the admin panel where I am going to show you how to deal with admins, categories, products, and orders. Of course, there are going to be a lot of details to talk about. So if you think this course is beneficial to you, go ahead and get it now. See you inside.