rax369
Technical User
- Jul 21, 2002
- 3
Hi I'm trying to make this simple application where a user can customize his/her PC in a reseller web site.
As you can see, what a wanna achieve is to show the price of the product at its side below le column Price , as the example given with the motherboard. Once the user has selected X product, the price has to be shown immediately in the TextField. The price will be taken from a database I already made.
I'm giving you the info about the database I have.
DataBase Name: Test01
Table: products
Field inside the table 'products': 6 (as follows)
* Code ( code of the product assigned by the reseller )
* ProdName ( name of the product )
* Category ( category to which the product belongs... e.g.: monitors, motherboards, mouse, processors, etc. )
* Brand ( the brand of the product... e.g. Intel, viewsonic, logitech, etc. )
* Provider ( the name of the reseller's provider )
* Price ( price of the product )
The price of the products have to be summed and showed at the end of the column Price, at the side of TOTAL.
I has been only able to get the info of the motherboard from the table products, and show it in the List/Menu using this SQL query :
SELECT PRODNAME
FROM TEST01.PRODUCTS
WHERE CATEGORY LIKE 'MOTHERBOARDS'
But I don't know how to link the price of every product from the database, and put it inside of the textbox.
I'm stucked trying to make this exercise for my learning. Thx for any help.
R@x
As you can see, what a wanna achieve is to show the price of the product at its side below le column Price , as the example given with the motherboard. Once the user has selected X product, the price has to be shown immediately in the TextField. The price will be taken from a database I already made.
I'm giving you the info about the database I have.
DataBase Name: Test01
Table: products
Field inside the table 'products': 6 (as follows)
* Code ( code of the product assigned by the reseller )
* ProdName ( name of the product )
* Category ( category to which the product belongs... e.g.: monitors, motherboards, mouse, processors, etc. )
* Brand ( the brand of the product... e.g. Intel, viewsonic, logitech, etc. )
* Provider ( the name of the reseller's provider )
* Price ( price of the product )
The price of the products have to be summed and showed at the end of the column Price, at the side of TOTAL.
I has been only able to get the info of the motherboard from the table products, and show it in the List/Menu using this SQL query :
SELECT PRODNAME
FROM TEST01.PRODUCTS
WHERE CATEGORY LIKE 'MOTHERBOARDS'
But I don't know how to link the price of every product from the database, and put it inside of the textbox.
I'm stucked trying to make this exercise for my learning. Thx for any help.
R@x