后边的都没有问题,就是24行以前貌似有点问题。运行结果如下图。如果是正常显示的话,应该是每一栏里都能读取数据库里头的信息。<?php
//######################课题详细信息##########################
include "config.php";
include "header.php";?>
<title>课题详细信息</title>
<style type="text/css">
<!--
.STYLE1 {
font-size: 16px;
color: #FF0000;
}
.STYLE2 {font-size: 14px}
.STYLE3 {font-size: 12px}
-->
</style>
<p>
</p>
<?php $query="select * from $jiaoshi_table where id='".$id."'";
mysql_query("set names 'GB2312'");
$result=mysql_query($query);
$row=mysql_fetch_array($result);
?><table width="700" border="1" align="center" cellpadding="0" cellspacing="1" class="text">
<!--DWLayoutTable-->
<form name="form1" method="post" action="xiangxiziliao.php">
<tr bgcolor="#E4E4E4">
<td height="27" colspan="3"><span class="STYLE1 STYLE2">>>>课题信息</span></td> </tr>
<tr>
<td width="184" bgcolor="#FFFFFF"><div align="center" class="STYLE2">
<div align="right">课题编号:</div>
</div></td>
<td width="507" bgcolor="#FFFFFF" height="39"> <input type="text" name="id" size="28" value="<?php echo $row['id'] ?>" readonly="readonly">
</td>
</tr>
<tr>
<td width="184" bgcolor="#E4E4E4"><div align="center" class="STYLE2">
<div align="right">课题名称:</div>
</div></td>
<td width="507" bgcolor="#E4E4E4" height="39"> <input type="text" name="subject1" size="45" value="<?php echo $row['subject'] ?>" readonly="readonly">
</td>
</tr>
<tr>
<td width="184" bgcolor="#FFFFFF"><div align="center" class="STYLE2">
<div align="right">指导教师姓名:</div>
</div></td>
<td width="507" bgcolor="#FFFFFF" height="36"> <input type="text" name="teacher1" size="30" value="<?php echo $row['teacher'] ?>" readonly="readonly"> </td>
</tr>
<tr>
<td width="184" bgcolor="#E4E4E4"><div align="center" class="STYLE2">
<div align="right">指导教师职称:</div>
</div></td>
<td width="507" bgcolor="#E4E4E4" height="41"> <input type="text" name="zhicheng1" size="25" value="<?php echo $row['zhicheng'] ?>" readonly="readonly"> </td>
</tr>
<tr>
<td width="184" bgcolor="#FFFFFF"><div align="center" class="STYLE2">
<div align="right">教师的研究方向:</div>
</div></td>
<td width="507" bgcolor="#FFFFFF" height="41"> <input type="text" name="specialized1" size="25" value="<?php echo $row['specialized'] ?>" readonly="readonly"> </td>
</tr>
<tr>
<td width="184" bgcolor="#E4E4E4"><div align="center" class="STYLE2">
<div align="right">课题专业代码:</div>
</div></td>
<td width="507" bgcolor="#E4E4E4" height="41"> <input type="text" name="code1" size="20" value="<?php echo $row['code'] ?>" readonly="readonly">
<span class="STYLE3"></span></td>
</tr>
<tr>
<td width="184" bgcolor="#FFFFFF"><div align="center" class="STYLE2">
<div align="right">课题所需学生人数:</div>
</div></td>
<td width="507" bgcolor="#FFFFFF" height="41"> <input type="text" name="number1" size="20" value="<?php echo $row['number'] ?>" readonly="readonly">
<span class="STYLE3"></span></td>
</tr>
<tr>
<td width="184" bgcolor="#FFFFFF"><div align="center" class="STYLE2">
<div align="right">课题简要说明:</div>
</div></td>
<td width="507" bgcolor="#FFFFFF" height="163"><label>
<textarea name="introduction" cols="60" rows="10" readonly="readonly"><?php echo $row['beizhu'] ?></textarea>
</label></td>
</tr>
</form>
</table>
<p>
</p>
<?php include "foot.php"?>
//######################课题详细信息##########################
include "config.php";
include "header.php";?>
<title>课题详细信息</title>
<style type="text/css">
<!--
.STYLE1 {
font-size: 16px;
color: #FF0000;
}
.STYLE2 {font-size: 14px}
.STYLE3 {font-size: 12px}
-->
</style>
<p>
</p>
<?php $query="select * from $jiaoshi_table where id='".$id."'";
mysql_query("set names 'GB2312'");
$result=mysql_query($query);
$row=mysql_fetch_array($result);
?><table width="700" border="1" align="center" cellpadding="0" cellspacing="1" class="text">
<!--DWLayoutTable-->
<form name="form1" method="post" action="xiangxiziliao.php">
<tr bgcolor="#E4E4E4">
<td height="27" colspan="3"><span class="STYLE1 STYLE2">>>>课题信息</span></td> </tr>
<tr>
<td width="184" bgcolor="#FFFFFF"><div align="center" class="STYLE2">
<div align="right">课题编号:</div>
</div></td>
<td width="507" bgcolor="#FFFFFF" height="39"> <input type="text" name="id" size="28" value="<?php echo $row['id'] ?>" readonly="readonly">
</td>
</tr>
<tr>
<td width="184" bgcolor="#E4E4E4"><div align="center" class="STYLE2">
<div align="right">课题名称:</div>
</div></td>
<td width="507" bgcolor="#E4E4E4" height="39"> <input type="text" name="subject1" size="45" value="<?php echo $row['subject'] ?>" readonly="readonly">
</td>
</tr>
<tr>
<td width="184" bgcolor="#FFFFFF"><div align="center" class="STYLE2">
<div align="right">指导教师姓名:</div>
</div></td>
<td width="507" bgcolor="#FFFFFF" height="36"> <input type="text" name="teacher1" size="30" value="<?php echo $row['teacher'] ?>" readonly="readonly"> </td>
</tr>
<tr>
<td width="184" bgcolor="#E4E4E4"><div align="center" class="STYLE2">
<div align="right">指导教师职称:</div>
</div></td>
<td width="507" bgcolor="#E4E4E4" height="41"> <input type="text" name="zhicheng1" size="25" value="<?php echo $row['zhicheng'] ?>" readonly="readonly"> </td>
</tr>
<tr>
<td width="184" bgcolor="#FFFFFF"><div align="center" class="STYLE2">
<div align="right">教师的研究方向:</div>
</div></td>
<td width="507" bgcolor="#FFFFFF" height="41"> <input type="text" name="specialized1" size="25" value="<?php echo $row['specialized'] ?>" readonly="readonly"> </td>
</tr>
<tr>
<td width="184" bgcolor="#E4E4E4"><div align="center" class="STYLE2">
<div align="right">课题专业代码:</div>
</div></td>
<td width="507" bgcolor="#E4E4E4" height="41"> <input type="text" name="code1" size="20" value="<?php echo $row['code'] ?>" readonly="readonly">
<span class="STYLE3"></span></td>
</tr>
<tr>
<td width="184" bgcolor="#FFFFFF"><div align="center" class="STYLE2">
<div align="right">课题所需学生人数:</div>
</div></td>
<td width="507" bgcolor="#FFFFFF" height="41"> <input type="text" name="number1" size="20" value="<?php echo $row['number'] ?>" readonly="readonly">
<span class="STYLE3"></span></td>
</tr>
<tr>
<td width="184" bgcolor="#FFFFFF"><div align="center" class="STYLE2">
<div align="right">课题简要说明:</div>
</div></td>
<td width="507" bgcolor="#FFFFFF" height="163"><label>
<textarea name="introduction" cols="60" rows="10" readonly="readonly"><?php echo $row['beizhu'] ?></textarea>
</label></td>
</tr>
</form>
</table>
<p>
</p>
<?php include "foot.php"?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货