I extract a value from my table that is decimal datatype:
$resource_pt = intval($row['resource_pt']);
I need to display this in a field. I have read where I need to use printf to do this.
What is the proper syntax to place it here for editing?
echo "<td align=\"center\" bgcolor=\"#999999\"><input type=\"text\" size=\"30\" name=\"resource_pt\" value=\"$resource_pt\"/></td>";
I have tried number_format and all I get are 0000 in my field when the value is .125