MATH-Oring calculation
Posted: Thu Jun 26, 2008 11:13 pm
I am fairly new to PHP and I am not sure where to start. I need to perform a calculation based on user input. For example:
You should be able to type in any value in the inside diameter or cross sectional diameter boxes. For example 1.4332β. The computer will look at this as an inch dimension and also a metric dimension. It will find all inside diameters from the standard and metric o-ring database that are within ΒΌβ of this dimension. Then the customer will type in the cross sectional diameter they desire. This time the computer will only search from the first list of inside diameters that it came up with and match all the ones that have that inside diameter and a cross section that is within 1/32β of what the customer typed in. That will give the customer a final list to choose from. They will pick one or more from the list.
I am not sure how to go about this and would greatly appreciate any help!

You should be able to type in any value in the inside diameter or cross sectional diameter boxes. For example 1.4332β. The computer will look at this as an inch dimension and also a metric dimension. It will find all inside diameters from the standard and metric o-ring database that are within ΒΌβ of this dimension. Then the customer will type in the cross sectional diameter they desire. This time the computer will only search from the first list of inside diameters that it came up with and match all the ones that have that inside diameter and a cross section that is within 1/32β of what the customer typed in. That will give the customer a final list to choose from. They will pick one or more from the list.
I am not sure how to go about this and would greatly appreciate any help!