Now, I don't really no much (if anything at all!) about PHP but as nobody has replied yet I'll chip in here.
number_format() is a PHP function (I'm just writing my observations down here, I know you know that it's a function) but you appear to be asking it to write your number up to two decimal places but number_format with a parameter of 2 actually gives you a decimal and a comma between every group of thousands. Not what you want by the sounds of it.
However, round() will achieve what you require.
The actual use of this I'm not sure. Perhaps it will be something like this:
PHP Code:
echo mysql_result ($result,$ctr,round("inputqty".2));
But a better method would be to round() the number before putting it in the MySQL database, maybe. Unless you require the full number elsewhere.
As I say, I don't know PHP, and if I haven't confused you further, I hope I've helped somewhat.
|