Parse error: syntax error, unexpected T_VARIABLE in C:\AppServ\www\TM\index.php on line 25
下面是代码:<form name="myform" method="post" action="">
<tr>
<td>请输入内容
   <input name="txt_book" type="text" id="txt_book" size="25" /> 
      &nbsp;
<input type="submit" name="submit" value="查询" />
  </td>
</tr>
</form>
<?php
$link=mysql_connect("localhost","root","542815") or die("数据库连接失败".mysql_error());
mysql_select_db("wxz",$link);
mysql_query("set names gb2312");
$sql=mysql_query("select * from wxz");
$info=mysql_fetch_array($sql);
if($_POST[Submit]=="查询"){
$txt_book=$_POST[txt_book];//这行是第25行 $sql=mysql_query("select * from wxz where name like '%".trim($txt_book)."%'");//如果选择的条件为"like",则进行模糊查询
$info=mysql_fetch_array($sql);


if($info==false){
echo"不存在你所查的数据";

}
?>
<?php
do{

?>
<tr>
<td> <?php echo $info[id]; ?> </td>
<td> <?php echo $info[name]; ?> </td>
<td> <?php echo $info[pwd]; ?> </td>
</tr>
    <?php
}while($ifo=mysql_fetch_array($sql));
?>