+ 1
Can someone explain why this doesn't work? PHP switch syntax error.
<?php $Store = 'mystore' switch ($Store) { case "mystore": echo "Mystore has this product in stock!"; break; case "EMS": echo "Otherstore has this product in stock!"; break; default: echo "This product is not available in your area."; } ?>
1 Réponse
+ 2
Missing semicolon in first line :
$Store = 'mystore';