+ 2
Hi, Why there is an error in the last row of the code below?
4 Answers
+ 2
I put parentheses around the expression ($distance/10) and error is solved.
echo "<td align='right'>".($distance/10)."</td>\n</tr>\n";
In php period(.) is for concatenation, I guess. And in last line it is preceded by a number so may be that's why it is considered as decimal and not the concatenation operator.
I may be wrong, I don't know php.
+ 2
Thank You very very much.
You 've solved the problem. I did not SUSPECTED it is the key._-:)
+ 2
You did not in a mistake. special TANKS, Nidhi!
0
âșïžglad to know it helped.