title: I keep receiving "Parse error: syntax error, unexpected ';' in ..."
body: <p>I am very new to PHP programming and I will be very thankful if anyone kindly help me out regarding the error message that I am getting on the following code snippet:</p>
  <pre><code>&lt;option value=&quot;&lt;?php echo $rowMC['id']; ?&gt;&quot; &lt;?php echo  (isset($_POST['MainContract']) &amp;&amp; $_POST['MainContract'] === '&lt;?php echo $rowMC['id']; ?&gt;' ? 'selected' : ''; ?&gt; &gt; &lt;?php echo $rowMC['MainContract']; ?&gt; &lt;/option&gt;
  </code></pre>
  <p>I have checked several time that there are not any missing ; in the lines before or after and I think sth is wrong with the posted code snippet.</p>