viper102464
07-15-2006, 12:36 AM
Hello all, im trying to build a website where you can build your own computer. The site is at: http://www.oharanetworks.com/jcr/build/4000/
Im trying to add a sales tax and a 30% build fee onto all of the items in the array. Right now im doing this myself and putting the final value in the array but I know there is an easier way, because that is very time consuming. The entire code is here, sorry but it is a lot, too big to paste in here:
http://www.oharanetworks.com/script.txt
I know what your saying: Why did he do it like this? But this script works flawlessly, I have almost perfected it, but I wanted to add on a final sales tax and build fee on the final price, I dont know how to calculate that in php. Either you could do it for every individual item, or at the end have it calculate it for everything not sure, but please help. Please help me with what I need to get done though, please dont tell me what I should and should not do with either sections of the code that are not related. Thanks, :eek: this is the second time ive had to rewrite this.:confused: :confused:
Im trying to add a sales tax and a 30% build fee onto all of the items in the array. Right now im doing this myself and putting the final value in the array but I know there is an easier way, because that is very time consuming. The entire code is here, sorry but it is a lot, too big to paste in here:
http://www.oharanetworks.com/script.txt
I know what your saying: Why did he do it like this? But this script works flawlessly, I have almost perfected it, but I wanted to add on a final sales tax and build fee on the final price, I dont know how to calculate that in php. Either you could do it for every individual item, or at the end have it calculate it for everything not sure, but please help. Please help me with what I need to get done though, please dont tell me what I should and should not do with either sections of the code that are not related. Thanks, :eek: this is the second time ive had to rewrite this.:confused: :confused: