I recently installed wamp server to run some php, and I keep on getting this error: Parse error: syntax error, unexpected '{' in C:\wamp64\www\PHP\form-enquiries.php on line 18
I know my code is correct and I tested it on other servers and it worked just fine
Can anyone please tell me why its throwing this error?
    <?php
    if (strpos($cardtype, 'basic')){
        $price = 10;
    }
    else if (strpos($cardtype, 'medium')){
        $price = 15;
    }
    else (strpos($cardtype, 'high')){ //this is where it says the error is
$price = 20;
}
    ?>
