中间忽略  看头看尾就好
<?php 
for($i=0;$i<10;$i++)
{
?>
<style type="text/css">
body {
background-color: #FF9;
}
</style><table width="1252" border="0">
  <tr>
    <td colspan="20" bgcolor="#CCCC66"><div align="center">the main title</div></td>
  <tr>
    <td width="19">&nbsp;</td>
    <td width="19">&nbsp;</td>
    <td width="19">&nbsp;</td>
    <td width="19">&nbsp;</td>
    <td width="19">&nbsp;</td>
    <td width="19">&nbsp;</td>
    <td width="19">&nbsp;</td>
    <td width="19">&nbsp;</td>
    <td width="19">&nbsp;</td>
    <td width="19">&nbsp;</td>
    <td width="19">&nbsp;</td>
    <td width="19">&nbsp;</td>
    <td width="19">&nbsp;</td>
    <td width="19">&nbsp;</td>
    <td width="49">&nbsp;</td>
    <td width="1">&nbsp;</td>
    <td width="6">&nbsp;</td>
    <td width="312" bgcolor="#ABADB3"><div align="center">team1</div></td>
    <td width="37">&nbsp;</td>
    <td width="499" bgcolor="#3399FF"><div align="center">video</div></td>
  </tr>
  <tr>
    <td colspan="15" rowspan="15" align="center" valign="middle" bgcolor="#0000FF"><img src="pic/pic.jpg" width="359" height="345" align="absmiddle" />    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>---------------------------------------------------</td>
    <td>&nbsp;</td>
    <td rowspan="16"><div align="right"><span class="waiwei3">
      <embed src="http://player.youku.com/player.php/sid/XNDU5NTY0MjUy/partnerid/56887/v.swf" quality="high" width="480" height="420" align="middle" allowscriptaccess="sameDomain" allowfullscreen="true" type="application/x-shockwave-flash"></embed>
    </span></div></td>
  </tr>
  <tr>
    <td height="25">&nbsp;</td>
    <td>&nbsp;</td>
    <td rowspan="14" valign="top"><p>sdfffffffffffffffffffffffffffffffffffffffsdfsdf sadfsd</p>
    <p>sdfsdf</p>
    <p>sdf</p>
    <p>sdf</p>
    <p>sdf</p>
    <p>sdfs</p>
    <p>df</p>
    <p>d  text</p></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="64">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="35" colspan="15" bgcolor="#00FF33"><div align="center">the title of picture</div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><form action="server.php" method="post" name="form1" target="_new">
  <div align="center">
    <input type="submit"  height="15px" width="20px" name="win" id="win" value="投票">
    <input name="team" type="hidden" value="member">
  </div>
</form></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="13">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><div align="center">result</div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr><div align="center"></div>
</table><?php }?>

解决方案 »

  1.   


    然后我找到问题了...想问问有什么原因会导致php不被编译而直接显示出来
      

  2.   

    我在浏览器查看源代码~~~发现<?php ?>里面的内容没有编译直接显示出来了~~~是不是配置文件哪里错了??
      

  3.   

    比如是apache,打开配置文件,LoadModule php5_module …… 仔细检查路径,确保无误application/x-httpd-php 看看,确认下文件后缀
    其他WEBserver类似道理
      

  4.   

    例子是apache的配置文件里面的
      

  5.   

    找到问题所在...我把文件从unicode另存为utf8..就正常了..何解