View Full Version : error in code :(

10-10-2012, 02:40 AM
can anyone help me with this error please i dont quite understand whats wrong im getting the error Warning: number_format() expects parameter 1 to be double, string given on line 238 of common.htm i go to that line and this is what appears :return number_format($number, 0, '', ','); can anyone help me what am i missing :(:confused:

10-10-2012, 03:18 AM
$number should be exactly that a numeric value, what do you see if you

echo $number;


10-10-2012, 04:33 AM
Hi im sorry i dont quite understand im still kind of a beginner
could you please rephrase your answer?
my error code is this

i navigate to the desired line(not shown in the pic above) which is 238 i see this

Thanks for taking your time out to help me :)

10-10-2012, 05:59 AM
what I mean is that we need to see the value of $number which is getting passed to that function.. so temp change the function to ..

function prnintg($number){
echo "\$number = {$number}";
return number_format($number,0,'',',');

that may or may not give us a clue to whats happening, you also need to find the part of the code that calls prnintg($someval)