Whats wrong with this code?
<?
$score = $a1 + $a2 + $a3 + $a4 + $a5 + $a6 + $a7 + $a8 + $a9 + $a10 + $a11 + $a12 + $a13 + $a14 + $a15 + $a16 + $a17 + $a18 + $a19 + $a20;
print"$score";
?>
It print allways "0" when values of a1 ... a20 are something like 1,22 and 0,22
Thanks
Newbie question?
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
-
bionicdonkey
- Forum Contributor
- Posts: 132
- Joined: Fri Jan 31, 2003 2:28 am
- Location: Sydney, Australia
- Contact:
and poinfting to the sticky threads "Sticky: Before Post Read: ...",
esp. Sticky: Before Post Read: Concerning Passing Variables in PHP 4.2+
esp. Sticky: Before Post Read: Concerning Passing Variables in PHP 4.2+