Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I need to create username and password,I don't think below works.

CREATE LOGIN sample
WITH PASSWORD='samplex'

thee database is about shopping app that lets you create account and shop with your cart. you also are needed to logged in, how can I do that? and how can I know who's logged in?


My other problem is how can I put many product into my cart?

INSERT INTO tbl_cart (items,itemcount)
VALUES (apple,5)

What if I bought banana,grapes,oranges together with apple. how can I retrieve what items are in the cart together with the apple.

What I have tried:

CREATE LOGIN sample
WITH PASSWORD='samplex'

INSERT INTO tbl_cart (items,itemcount)
VALUES (apple,5)
Posted
Updated 6-Jul-17 7:28am

1 solution

 
Share this answer
 
v2
Comments
Member 13296680 9-Jul-17 5:32am    
Thankyou! These links helps a lot :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900