how to fix this notice error
<p>I have an unexpected ; error on this line: </p>

<p>$action = ($sessionMinus == $_SESSION['initial_count']) ? 'create_session2.php';</p>

<p>But if I remove the ; then it states unexpected { in the line below, how can this be sorted out?</p>

<p>below full code:</p>

<pre><code>if ($sessionMinus == $_SESSION['initial_count']){

    $action = ($sessionMinus == $_SESSION['initial_count']) ? 'create_session2.php';

}else if($sessionMinus != $_SESSION['initial_count']){

    $action = ($sessionMinus != $_SESSION['initial_count']) ? $_SERVER['PHP_SELF'];

}
</code></pre>
