0

I don't know any bit of asp here except for the very basics. However, I would like to create a shopping cart based purely on ASP. The shopping cart should have the feature of updating automatically when a product is added. I have the html page ready with me but I have no idea of how to connect the database and carry out the operations using ASP. Please help me. It should be an ecommerce site.

Ayush Khemka
  • 480
  • 2
  • 9
  • 22
  • have a look here; http://www.comersus.com/products/comersus-cart/, i think it's a bit much to ask if you're not custom to classic-asp. – DevCentral Oct 06 '12 at 13:35
  • actually I wanted to develop a site where users have their own accounts and can buy pc components. needed some help maybe on that case. – Ayush Khemka Oct 06 '12 at 13:51

1 Answers1

1

You can use this code to connect to your database if you are using microsoft-access as database. Just change your database and table name

set conob = Server.CreateObject("ADODB.Connection")
conob.Provider="Microsoft.Jet.OLEDB.4.0"
conob.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & server.MapPath("YourDatabaseName.mdb")
Set rsuni = Server.CreateObject("ADODB.Recordset")
sqlStr="select * from Student_Entry"

rsuni.open sqlStr,conob

If you are using sql server then go to This link. There are answers posted before

Community
  • 1
  • 1
polin
  • 2,745
  • 2
  • 15
  • 20