[thelist] PHP - Simple one

CDitty mail at redhotsweeps.com
Fri Oct 12 22:20:55 CDT 2001


Must be tired.  I can't seem to get this one to work right.   Should be 
really simple.  If there is a match, I need it to give 5 points.  However, 
it is concatenating the variables together instead of adding it.  Any tips?

Chris

$points = 0;

if($correct[0] == '1'){ // We have a match
      $points = $points + 5;
}

echo $points;

Should return something like 10 or 20.  Instead it returns 510152025.





More information about the thelist mailing list