Thread: Array Problems
View Single Post
Old Jan 31st, 2008, 12:29 PM   #4
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,799
Rep Power: 5 Sane will become famous soon enough
Re: Array Problems

Quote:
am not worried about the amount of seat orders number right now,
because I haven't coded for it.
It looks like you do actually have it coded so it can display the number of seat orders.

You should loop through the transactionclubSale array, and keep track of how many are type "Orchestra". Keep a total for that. Output the total price (the sum of each priceDecimal), and the number of entries found (seats ordered).

Repeat for Mezzanine.

Repeat for General. Etc...
Sane is offline   Reply With Quote