Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';' in /web/htdocs/www.bp-electronics.com/home/bpgest2/sheets/ddt.php on line 40 : <p>Good morning,
I have watched many times the code below and I could not understand where is the error. previously the error was on line 38 and was able to correct it, but now I just can not.
Please help me.</p>

<p>thanks in advance</p>

<pre><code>&lt;?php
     if(!$getQ[1]){
       if(@$_GET['undo']){mysql_query("UPDATE ddt SET ddtundo=1 WHERE  id='".$_GET['undo']."'");}
?&gt;
&lt;br&gt;&lt;br&gt;
&lt;table border="0" cellspacing="1" cellpadding="4" width="99%" align="center"&gt;

 &lt;tr&gt;
   &lt;td align="center" width="22"&gt;&lt;/td&gt;
   &lt;td align="left" class="txt_lit_grey" width="180"&gt;&lt;b&gt;Data&lt;/b&gt;&lt;/td&gt;
   &lt;td align="left" class="txt_lit_grey"&gt;&lt;b&gt;Cliente&lt;/b&gt;&lt;/td&gt;
   &lt;td align="left" class="txt_lit_grey"&gt;&lt;b&gt;Decoder&lt;/b&gt;&lt;/td&gt;
   &lt;td align="left" class="txt_lit_grey" width="90"&gt;&lt;b&gt;N. articoli&lt;/b&gt;&lt;/td&gt;
   &lt;td align="center" width="22"&gt;&lt;/td&gt;
   &lt;td align="center" width="22"&gt;&lt;/td&gt;
   &lt;td align="center" width="22"&gt;&lt;/td&gt;
   &lt;td align="center" width="22"&gt;&lt;/td&gt;
 &lt;/tr&gt;

 &lt;?php
     $row=0;
     $qu=mysql_query("SELECT * FROM users");
     while($ru=mysql_fetch_assoc($qu)){$users[$ru['id']]=$ru['fullname'];}

     $q=mysql_query("SELECT * FROM ddt ORDER BY data DESC");
     while($r=mysql_fetch_assoc($q)){
          $tot=count(explode("|",$r['ware']));
          $items=explode("|",$r['ware']); 
          for($i=0;$i&lt;count($items);$i++){
             if($i%2){$fill=1;}else{$fill=0;}
             $value=explode("#",$items[$i]); 
             $qc=mysql_query("SELECT * FROM catalog WHERE id='".$value[0]."'");
             $rc=mysql_fetch_assoc($qc); 
           }
           if($row%2){$bgcolor="#ffffff";}else{$bgcolor="#eeeeee";}

           echo "&lt;tr&gt;n";
           if($r['ddtundo']){echo "&lt;td bgcolor="#dddddd" height="5" align="center" class="txt_lit_white radius"&gt; &lt;/td&gt;n";}else{echo "&lt;td bgcolor="#dddddd" height="5" align="center" class="txt_lit_white radius"&gt; &lt;/td&gt;n";}

           echo "&lt;td bgcolor="$bgcolor" height="5" align="left" class="txt_lit_black"&gt;".date("d/m/Y H:i.s",strtotime($r['data']))."&lt;/td&gt;n";
           echo "&lt;td bgcolor="$bgcolor" height="5" align="left" class="txt_lit_black"&gt;".$r['operator']."&lt;/td&gt;n";
           echo "&lt;td bgcolor="$bgcolor" height="5" align="left" class="txt_lit_black"&gt;".$rc['short_description']."&lt;/td&gt;n";
           echo "&lt;td bgcolor="$bgcolor" height="5" align="left" class="txt_lit_black"&gt;".$tot."&lt;/td&gt;n";

           echo "&lt;td bgcolor="$bgcolor" align="center"&gt;&lt;a class="cb_iframe" href="sheets/ddt/pdf_ddt.php?id=".$r['id']."" title="Visualizza"&gt;&lt;img src="img/icons/view.png"&gt;&lt;/a&gt;&lt;/td&gt;n";
           echo "&lt;td bgcolor="$bgcolor" align="center"&gt;&lt;a class="cb_iframe" href="sheets/ddt/modify.php?id=".$r['id']."" title="Modifica"&gt;&lt;img src="img/icons/modify.png"&gt;&lt;/a&gt;&lt;/td&gt;n"; 
           echo "&lt;td bgcolor="$bgcolor" align="center"&gt;&lt;a class="cb_iframe" href="sheets/ddt/delete.php?id=".$r['id']."" title="Elimina"&gt;&lt;img src="img/icons/download.png"&gt;&lt;/a&gt;&lt;/td&gt;n"; 

           echo "&lt;/tr&gt;n";
           $row++;
      }    
 ?&gt;
&lt;/table&gt;
&lt;table border="0" cellspacing="4" cellpadding="4" width="99%"&gt;
     &lt;tr&gt;
        &lt;td valign="top" align="right"&gt;
           &lt;a href"sheets/ddt/new_ddt.php"&gt;&lt;input type="button" class="button_blu button_big" value="&lt;?php if($_SESSION['DDT']['DATA']){echo "Apri DDT in sospeso";}else{echo "Nuovo DDT";}?&gt;"&gt;
           &lt;/a&gt;
        &lt;/td&gt;
     &lt;/tr&gt;
&lt;/table&gt;
&lt;?php

    }else{@include 'sheets/ddt/new_ddt.php';}
?&gt;
</code></pre>
