Skip to content

liamg2810/shopping-cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

To initialise this project install wampserver and run it.

Place the code in 'C:\wamp64\www\shoppingcart'

Go to http://localhost/phpmyadmin/index.php?route=/server/databases

Create a database called 'shoppingcart'

Within the created database execute this SQL query:

CREATE TABLE tblCart(
	id int NOT NULL AUTO_INCREMENT,
    PRIMARY KEY (id),
    cartName varchar(50) NOT NULL
);

CREATE TABLE tblItem(
	id int NOT NULL AUTO_INCREMENT,
    PRIMARY KEY (id),
  	cartID int NOT NULL,
    FOREIGN KEY (cartID) REFERENCES tblCart(id),
    itemName varchar(50) NOT NULL,
    quantity int DEFAULT(1)
);

You can now go to http://localhost/shoppingcart to use the app.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages