weight calculation
From: Terje (terje_at_cyberfactory.no)
Date: 11/07/04
- Next message: Andy Hassall: "Re: weight calculation"
- Previous message: Nanda: "Date for news script"
- Next in thread: Andy Hassall: "Re: weight calculation"
- Reply: Andy Hassall: "Re: weight calculation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 7 Nov 2004 13:32:10 +0100
I'm stuck with a problem, and I think its easy solved for a clever mind :)
I have a page where something like this is listed out from a session
Product A costs 56 -weight 4,5 - Supplier 2
Product B costs 58 - weight 1,5 - Supplier 1
Product C costs 37 - weight 3,1 - Supplier 2 and so on.
Is there anyway I can summarize the weight on each supplier, example the
total weight for products from supplier 2 is 7,6?
I was wondering about use of array or something but are unable to see a good
working solution, as the number of suppliers are different so I can't use
stuck variables as weightsupplier1 and so on.
Terje
- Next message: Andy Hassall: "Re: weight calculation"
- Previous message: Nanda: "Date for news script"
- Next in thread: Andy Hassall: "Re: weight calculation"
- Reply: Andy Hassall: "Re: weight calculation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|