Attenzione, non so se é il problema, ma fai attenzione che nella prima parte del codice, dove c'é width manca una virgoletta:
codice:
echo"<div align=\"center\"> 
<table border=\"0\" width=\"757\"  cellspacing=\"0\" cellpadding=\"0\" height=\"410\" id=\"table1\" style=\"border-left:1px solid #C0C0C0; border-right:1px solid #C0C0C0; border-top-width: 1px; border-bottom-width: 1px\">";   ...