Semicolons
PHP Code:
$discount = lookup_points($points);
function lookup_points($points) {
if ($points >= 0 && $points <= 5) { return .75; }
if ($points >= 6 && $points <= 11) { return .70; }
if ($points >= 12 && $points <= 17) { return .65; }
if ($points >= 18 && $points <= 23) { return .60; }
if ($points >= 24 && $points <= 29) { return .55; }
if ($points >= 30 && $points <= 30) { return .50; }
}
echo $discount;