Quote:
Originally Posted by sarettah
Same as we did the select, just divide height by 12 (12 inches in a foot) and then get the remainder for the left over inches:
intval($height/12) . ' feet ' . ($height-(intval($height/12)*12)) . ' inches';
|
Actually that should be:
<?=intval($detail['height']/12) . ' feet ' . ($detail['height']-(intval($detail['height']/12)*12)) . ' inches';?>
Where you have:
<?=$detail['height'];?>
Hate when I screw up
