Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 ASP question...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

esahc
Starting Member

47 Posts

Posted - 11 June 2001 :  15:36:34  Show Profile
ok, I have a question... I'm trying to emulate part of this page:

THIS PAGE


I need to know if I need to do that with a DB, or if I can just put all the
info on the page... someone please help...

Edited by - esahc on 11 June 2001 15:43:22

redbrad0
Advanced Member

USA
3725 Posts

Posted - 11 June 2001 :  15:39:15  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
just to make it easier, here is the link easier to click...

CLICK HERE

Sorry, im not sure how it works, looks like it would have to use a db

Brad

Edited by - redbrad0 on 11 June 2001 15:40:47
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 11 June 2001 :  15:44:06  Show Profile
Looks like you'll definately have to do it with a db, having tables for each options ( with prices ) and then taking the base price and just adding any options that are choosen if they are above the base setup.



http://www.ugfl.net/forums
Go to Top of Page

esahc
Starting Member

47 Posts

Posted - 11 June 2001 :  15:49:15  Show Profile
so, in other words, they would have a table for each individual upgrade possibility that would look something like:

base_product_name......price
upgrade_one.................amount_to_add_to_base
upgrade_two.................amount_to_add_to_base

and have one for each individual product? (processor, Memory, Hard Drive, etc...)



Edited by - esahc on 11 June 2001 15:51:56
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 11 June 2001 :  16:00:49  Show Profile
example:

processor_table
processor_Id
Processor_name
processor_price

So here's a list
1
AMD 600 blah blah
$0

2
AMD 660 blah blah
$60

etc.

So if the first one is choosen, it will not add to the base price, only if the second on is choosen it will grab the base price of the pc ( also from the db ) and add the addon price for that. It will go through all the options checking to see if it should add to the base price



http://www.ugfl.net/forums
Go to Top of Page

esahc
Starting Member

47 Posts

Posted - 11 June 2001 :  16:03:41  Show Profile
k... I think I understand...

Go to Top of Page

esahc
Starting Member

47 Posts

Posted - 11 June 2001 :  16:06:29  Show Profile
also - another question... what If I want to do that with a few different computer systems? would I have seperate db's for each?

Go to Top of Page

esahc
Starting Member

47 Posts

Posted - 13 June 2001 :  00:24:32  Show Profile
*bump*

Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 13 June 2001 :  18:19:38  Show Profile
quote:

also - another question... what If I want to do that with a few different computer systems? would I have seperate db's for each?



No you don't need to. The base_product_name & price example is what you need to query for a single page (you may need a url field for the image), then put the base price as text. Then add&substract others. All can be done in one asp page, a caller link can call this page like:


<a href="systemselect.asp?sys_id=4210">4210 Value Series Desktop</a>


And the code first gets the parameter using request.querystring("sys_id") and passes to a SQL select to get the first few lines, including description, image url, base price, etc.

One more major problem here can be: Not all add-ons may work with the base system. For example a system may not allow more than xMB's of RAM, or it may not support extra graphic cards if it has one onboard, etc.

In this case you error-checking routines will be too much complicated.


Think Pink
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07