Author |
Topic  |
|
esahc
Starting Member
47 Posts |
Posted - 11 June 2001 : 15:36:34
|
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
|
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 |
 |
|
big9erfan
Average Member
  
540 Posts |
Posted - 11 June 2001 : 15:44:06
|
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 |
 |
|
esahc
Starting Member
47 Posts |
Posted - 11 June 2001 : 15:49:15
|
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 |
 |
|
big9erfan
Average Member
  
540 Posts |
Posted - 11 June 2001 : 16:00:49
|
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 |
 |
|
esahc
Starting Member
47 Posts |
Posted - 11 June 2001 : 16:03:41
|
k... I think I understand...
|
 |
|
esahc
Starting Member
47 Posts |
Posted - 11 June 2001 : 16:06:29
|
also - another question... what If I want to do that with a few different computer systems? would I have seperate db's for each?
|
 |
|
esahc
Starting Member
47 Posts |
Posted - 13 June 2001 : 00:24:32
|
*bump*
|
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 13 June 2001 : 18:19:38
|
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 |
 |
|
|
Topic  |
|