19
That function is not even close to what would work..
You would have been passing the height to the function which means you dont need the query...
And you have to return a variable and you can only do one so you would have to convert it to a string and return the string.
The way we worked it out over yahoo should work ok for you.
If you would have done something like...
function getheight($height) {
$inches = $height % 12;
$feet = ($height - $inches) / 12;
return $feet . " ' " . $inches . ' " ';
}
This MIGHT have worked. Haven't tried something like this with a function yet though.
Then you would have called it like...
$finalheight=getheight($height);
Rodney