Create an include file “aShopCart.php” and script “myShop.php”. Inside the aShopCart.php, create a class called ShoppingCart: a. The file called “aShopCart.php” contains all member functions that will address serialisation and unserialisation of values. b. Add other member functions that will display the contents of the tbl_Item table. The items must be displayed in an HTML table with the necessary headings showing the quantities available and retail prices. Each line must have a button “AddToCart” or picture of a cart and the picture of the item. c. Create a script myShop.php which will include the “aShopCart.php”, load the Cascading Stylesheet (CSS) giving a specific look and feel to your pages and display all items of the tbl_Item table, available for purchasing
Create an include file “aShopCart.php” and script “myShop.php”. Inside the aShopCart.php,
create a class called ShoppingCart:
a. The file called “aShopCart.php” contains all member functions that will address
serialisation and unserialisation of values.
b. Add other member functions that will display the contents of the tbl_Item table. The
items must be displayed in an HTML table with the necessary headings showing the
quantities available and retail prices. Each line must have a button “AddToCart” or
picture of a cart and the picture of the item.
c. Create a script myShop.php which will include the “aShopCart.php”, load the Cascading
Stylesheet (CSS) giving a specific look and feel to your pages and display all items of the
tbl_Item table, available for purchasing
Step by step
Solved in 2 steps