当前位置: 代码迷 >> PHP >> unexpected $end 帮忙见见
  详细解决方案

unexpected $end 帮忙见见

热度:90   发布时间:2016-04-28 22:35:16.0
unexpected $end 帮忙看看
Parse error: syntax error, unexpected $end in D:\wamp\www\05\lb_ok.php on line 147
 另外谁介绍一款查查PHP错误的软件之类的,下面这个运行会出现上边这个错误,困扰好几天了!


<?php
session_start();
if(isset($_GET['id'])){
$id=$_GET['id'];
}else{
$id="";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看帖子详细信息</title>
<style type="text/css">
<!--
.STYLE2 {color: #CC6633}
.STYLE4 {color: #CC6600}
body,td,th {
font-size: 12px;
}
.STYLE6 {color: #FF0000}
-->
</style>
</head>

<body>
<?php
include("conn/conn.php");
include("index_01.php");
include("index_02.php");
$select=mysql_query("select * from tb_content where id='$id'",$conn);
$array=mysql_fetch_array($select);
$select_user=mysql_query("select * from tb_user where username='".$array['username']."'",$conn);
$array_user=mysql_fetch_array($select_user);
?>

<p align="center"><img src="images/06_01.gif" width="997" height="44" alt="" /></p>
<table width="993" height="452" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#CCCCCC">
  <?php
  if(isset($_GET['page'])){
$page=$_GET['page'];
}else{
   $page=1;
}
if($page<=1){
  ?>
  <tr>
    <td width="188" bordercolor="#FFFFFF" bgcolor="#FFFDF1"><div align="center"><span class="STYLE6">发起人</span></div></td>
    <td width="504" bordercolor="#FFFFFF" bgcolor="#FFFDF1"><span class="STYLE6">主题:<?php echo $array['subject'];?></span></td>
    <td width="204" bordercolor="#FFFFFF" bgcolor="#FFFDF1"><span class="STYLE6">发布日期:<?php echo $array['release_date'];?></span></td>
    <td width="74" bordercolor="#FFFFFF" bgcolor="#FFFDF1"><div align="center"><a href="hfzt.php?h_id=<?php echo $id;?>">回复</a></div></td>
  </tr>
  <tr>
    <td height="106" align="center" bordercolor="#FFFFFF" bgcolor="#FFFDF1"><?php echo $array_user['username'];?>
      <p align="center"><img src="<?php echo $array_user['tx'];?>" /></p>
    <p align="center"><span class="STYLE4">我是:<?php echo $array_user['sex'];?>生</span></p>
    <p align="center"><span class="STYLE2">email:<?php echo $array_user['email'];?></span></p>
    <p align="center"><span class="STYLE4">QQ:<?php echo $array_user['qq'];?></span></p></td>
    <td colspan="3" align="left" bordercolor="#FFFFFF" bgcolor="#FFFDF1"><?php echo $array['content'];?></td>
  </tr>
  相关解决方案