Shopping cart to a databse.

This is a discussion on "Shopping cart to a databse." within the Classic ASP section. This forum, and the thread "Shopping cart to a databse. are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 24th, 2005, 23:04
New Member
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Shopping cart to a databse.

I saw a recent post where you sent that shoping cart, i have found one very similiar but the only problem i have is writing what i purchased as well at the customer info for the data base. My site is for my experience only. http://ec.scranton.edu/lentinia/EC46...t/template.asp. If you could look at the shopping cart for me.
I need to figure out how to write this form to a database, there are two files.

http://ec.scranton.edu/lentinia/checkout.htm
http://ec.scranton.edu/lentinia/thankyou.htm
Reply With Quote

  #2 (permalink)  
Old Nov 25th, 2005, 07:55
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Shopping cart to a databse.

Here is the code to do a database insert, of course you need to create a database first if you havent got one already...

Code: Select all
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("data.mdb") & ";"
 
strName = Request.Form("Name")
 
strQuery = "INSERT INTO tblPeople ([Name]) VALUES ('"&strName&"')"
 
Set objRS = objConn.Execute(strQuery)
Set objRS = Nothing
 
objConn.Close
Set objConn = Nothing
Reply With Quote
  #3 (permalink)  
Old Nov 25th, 2005, 22:58
New Member
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Shopping cart to a databse.

ive gotten that far, but i cant write what the user has bought to the database how do i do about doing that.
Reply With Quote
Reply

Tags
shopping, cart, databse

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shopping Cart Aaron1988 PHP Forum 5 Sep 25th, 2006 10:08
shopping cart Aaron1988 Web Page Design 0 Sep 25th, 2006 08:29
i don't know much at all about ASP - can it do shopping cart benbacardi Classic ASP 3 Jul 21st, 2004 14:47


All times are GMT. The time now is 04:49.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43