Designing the pahirango_db schema in phpMyAdmin, populating product records across categories, and dynamically rendering the PahiranGo storefront from the database using PHP prepared statements.
The database pahirango_db was created inside XAMPP's MySQL server via phpMyAdmin. The core products table was designed to store all product information needed by the PahiranGo storefront.
| # | Column Name | Data Type | Null | Role |
|---|---|---|---|---|
| 1 | id | int(11) | No | Unique product identifier (PK) |
| 2 | name | varchar(150) | No | Product display name |
| 3 | category | varchar(50) | No | women / men / cosmetics |
| 4 | price | decimal(10,2) | No | Price in INR |
| 5 | quantity | int(11) | Yes | Stock count |
The PHP script connects to MySQL using PDO and executes a prepared statement (SELECT * FROM products) to fetch products, which are then iterated through a loop to dynamically generate HTML product cards.