Jump to content

calculate inches


brem13

Recommended Posts

trying to figure out how to calculate inches in php, or if that cant be done, how can i change my select statement to display inches in the drop down, but put the centemeter equivalent in the database, the calculation im talking about is something like > 4'6" & < 6'11'

$array_height1 = array('Any', "4'1"", "4'2"", "4'3"", "4'4" etc);
echo '<select name="height1">';
				foreach($array_height1 as $aheight1)
				{
					$selected = (($aheight1 == $height1) ? ' selected="selected"' : '');
					echo '<option value="'.$aheight1.'"'.$selected.'>'.$aheight1.'</option>';
				}//end for

would there be a way to do a  >4'6" & < 6'11" sort of thing tho

Link to comment
https://forums.phpfreaks.com/topic/203481-calculate-inches/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.