Hello, people

how can i convert height : centemeters, meters
into feet and inches?

and the same about weight: kilograms into lbs?

I want to take MySQL data - cent., meters and kilos
and show them on the page
in feet, inches and lbs?

any help would be appreciated,

thanks

    function conv2libs ($oldvalue)
    {
    $newValue = $oldvalue / 0.5; // just an expample calculation
    return $newValue;
    }

    use it like this:

    echo conv2libs($youValueOutOfTheDatabase);

      and for the conversions....

      www.askjeeves.com has a nice selection... just ask him about metric conversions or metric to standard, or cm to ft etc etc

        13 days later

        I've made it,

        here's the piece of code that soem might find useful:

        ....
        
        $weight=$row['weight'];
        $lbweight=$weight*2.20462;
        ...
        
        Height:</b> '.intval($ftheight).' ft '
        .round(($ftheight-intval($ftheight))*12).' 
        in &nbsp;  <br/>
        
        <b>Weight: </b>'.intval($lbweight).' lbs &nbsp <br/> 
        ....
        
        
          Write a Reply...