Forums

This topic is locked

How to make PC assembler

Posted 19 Aug 2002 09:53:39
1
has voted
19 Aug 2002 09:53:39 Dark Psycho posted:
Does annybody has the code for a pc assembler that you can choose the parts and then gives a global price

Greets Dark

The Power Is In The Code

Replies

Replied 20 Aug 2002 18:56:28
20 Aug 2002 18:56:28 Travis Brown replied:
Sounds like something you could pretty easily build following some of the tutorials out there. Pretty much just building a db with the components and price, and creating a form that allows the user to select the components from each category.

Replied 21 Aug 2002 10:50:40
21 Aug 2002 10:50:40 Dark Psycho replied:
where can i find such tutorials ??

The Power Is In The Code
Replied 21 Aug 2002 18:52:53
21 Aug 2002 18:52:53 David Behan replied:
What I would do with this mate is have on table with all your parts with the following details:

PART_ID
PART_NAME
PART_PRICE
PART_GROUP

You can add more stuff in put they are the basics.

Set up an SQL statement something like this:

"SELECT * FROM TBL_PARTS ORDER BY PART_GROUP ASC, PART_PRICE ASC"

This will take a bit of hand coding to do. I havn't tried it but the theory seems to work, but in practice I know things don't always go as planned. Here it is anyway:

1. Table with 2 Columns, 2 Rows. Layout like this: Row one will have column headers - component and select. Row two will have the componenet name (that's the group) and a select box.

2. The second row will have a repeat region of each group of components and within that, the select box will also have a repeat region of parts within this particular group of components. The repeat region will have to be handcoded and not the traditional UD repeat region cause it won't work.

3. I'll finish the rest of this later when I have more time to test my theory. Start with that and see how you get on and I'll add more after testing the theory.

Regards.

Dave

_________________________
WinXP : IIS 5.1 : StudioMX : ASP : VBScript
www.clicksdesign.com
Replied 22 Aug 2002 10:30:58
22 Aug 2002 10:30:58 Dark Psycho replied:
Thnax dave i am also testing with the shopping cart module and adiing multiple products to the chopping cart

The Power Is In The Code

Reply to this topic