PHP: Parse error
<p>I am getting this error:</p>

<pre><code>parse error in C:\wamp\www\work_order\workorderdetail.php on line 502
</code></pre>

<p>Here is the relevant portion of <code>workorderdetail.php</code> (the position of line 502 is marked with a comment):</p>

<pre><code>$sql_analysis="SELECT * FROM analysis WHERE workorderid='".$wid."' order by checktype";
mysql_select_db($database_cn, $cn);
$run_sql_analysis = mysql_query($sql_analysis) or die( mysql_error());
$row_analysis = mysql_fetch_assoc( $run_sql_analysis);

if(mysql_num_rows($run_sql_analysis)&gt;0) {
    do {
?&gt;
    &lt;tr&gt;
        &lt;td class="main-page_cells2"&gt;&lt;?php echo $row_analysis['checktype']; ?&gt;&lt;/td&gt;
        &lt;td class="main-page_cells2"&gt;&lt;?php if(empty($row_analysis['perform'])) echo 'N/A'; else echo $row_analysis['perform']; ?&gt;&lt;/td&gt;
        &lt;td class="main-page_cells2"&gt;&lt;?php if(empty($row_analysis['result'])) echo 'N/A'; else echo $row_analysis['result']; ?&gt;&lt;/td&gt;
        &lt;td class="main-page_cells2"&gt;&lt;?php if(empty($row_analysis['actionrequired'])) echo 'N/A'; else echo $row_analysis['actionrequired']; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;?php
    /* ------ parse error occurs on the next line ------ */
    }while($row_analysis = mysql_fetch_assoc($run_sql_analysis));
}
</code></pre>
