Quote:
Originally Posted by Ketchup
and the code on the actual profile page visible to public is
<p>Height:
<?=$detail['height'];?>
how do i make that ^ display as feet? Thanks!
|
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';