php if else if statements : <p>I am trying to output the variable above to output in html so I can use to report status in one column of my html tables. I have the following code but it doesn't seem to be working because i keep getting the "unexprected" error. </p>

<pre><code>&lt;?php
 $st = $row_all_students['mem_review_stat'];


  if ($st == "Pending") {
      echo "&lt;span class="label label-info"&gt;Pending&lt;/span&gt;";
  } elseif ($st == "on hold") {
      echo "&lt;span class="label label-danger"&gt;Suspended&lt;/span&gt;";
  } else {
      echo "&lt;span class="label label-success"&gt;Reviewed&lt;/span&gt;";
}
?&gt;
</code></pre>

<p>Can someone help me with the right syntax please?
Thanks in advance!</p>
