Control Flow: Switch


#1

Hello, I have looked at a lot of peoples examples and still can't get mine to work.

<!DOCTYPE html>
<html>
    <head>
		<title></title>
	</head>
	<body>
    <?php
    $name = "Cory"
    if ($name == "Cory")
   { echo  "Hello";}
    else if ($name == "Steve")
    { echo  "Who are you?";}
    else {echo "No Way"; }
    ;
    ?>
    </body>
</html>

#2

Which lesson is this? http://discuss.codecademy.com/t/control-flow-switch/20471 ?


#3

The semi-colon at the end of the statement is invalid and may be a deal breaker.


#4

It also looks like you are missing the ; after the $name = "Cory"


#5







<?php
$name = "Cory";
if ($name == "Cory") {
echo "Hello";}
else if ($name == "Steve") {
echo "Who are you?";}
else {
echo "No Way";
}
?>


#6

You missed a single semi-colon after $name = "Cory"