How tejaswini16-k/ecommerce works
This is a PHP online store: shoppers browse products, add and adjust cart items, submit checkout details, choose a payment method, and see an order confirmation. Accounts are handled through registration, login, and logout pages. The sampled pages use a shared PDO connection to MySQL for products, users, cart data, and order updates. Evidence covers the sampled request and redirect paths; the README is empty, and no payment-provider integration or external charge processing is shown.
Main entry points: db.php PDO Connection · cart.php Shopping Cart · checkout.php Checkout · payment.php Payment Selection
Components 11
Storefront
- Product Catalog
index.php
Accounts
- Login
pages/login.php - Registration
pages/register.php - Logout
pages/logout.php
Ordering
- Shopping Cart
pages/cart.php - Checkout
pages/checkout.php - Payment Selection
pages/payment.php - Order Confirmation
pages/thank_you.php
Persistence
- PDO Connection
includes/db.php - MySQL Store
Other components
- Shopper
Connections 23
- Shopper → Product Catalog: browses
index.php - Product Catalog → PDO Connection: loads connection
index.php - Product Catalog → Shopping Cart: submits product
index.php - Shopper → Login: signs in
pages/login.php - Shopper → Registration: registers
pages/register.php - Shopper → Logout: ends session
pages/logout.php - Login → PDO Connection: loads connection
pages/login.php - Registration → PDO Connection: loads connection
pages/register.php - Shopping Cart → Login: redirects if unauthenticated
pages/cart.php - Shopping Cart → PDO Connection: loads connection
pages/cart.php - Shopping Cart → MySQL Store: reads and updates cart
pages/cart.php - Shopper → Shopping Cart: manages items
pages/cart.php - Shopping Cart → Checkout: links to checkout
pages/cart.php - Checkout → Login: redirects if unauthenticated
pages/checkout.php - Checkout → PDO Connection: loads connection
pages/checkout.php - Checkout → MySQL Store: reads cart products
pages/checkout.php - Shopper → Checkout: submits address
pages/checkout.php - Checkout → Payment Selection: redirects to
pages/checkout.php - Payment Selection → PDO Connection: loads connection
pages/payment.php - Payment Selection → MySQL Store: updates order
pages/payment.php - Shopper → Payment Selection: selects method
pages/payment.php - Payment Selection → Order Confirmation: redirects to
pages/payment.php - PDO Connection → MySQL Store: opens PDO connection
includes/db.php