Any logical combination is fine. Whethed it be ASP/MS SQL, .NET/MS SQL, PHP/MySQL, JSP/MySQL, etc.
If your serious about it, its best to do a beginners programming course or tutorial first. Then you will understand the concepts when creating a shopping cart.
The following Web Sites offer good tutorials: