Hot Ash Cigars
This website is a store site built in php for a fake company called Hot Ash Cigars. Here someone can purchase cigars after they create an account. When they sign in their info is saved to a session to be used for purchases. In the account a person can see their past purchases and change there account data. When someone selects a cigar it's moved to the cart where they can update the quantity or remove it from the cart. This data is stored in a session that is started when something is added to the cart. Once the customer purchases the items it takes the product ids saved in sessions and the customers info and posts it to the purchase database. There is also a admin side to the site. Here they can add, edit, or delete a product which is then saved to the products table. They also can view all past purchases on the purchase table. The admin accounts are prevented from purchasing products. All the data is store on a mySQL database.
Hot Ash Cigars