我写的php代码根本不执行是怎么回事
echo"<formname='form2'method='post'action='aaa.php'><tableborder='2'id=\"oTable\"><tr...
echo "<form name='form2' method='post' action='aaa.php'>
<table border='2' id=\"oTable\">
<tr>
<td>是否录入</td>
<td>序号</td>
<td>单位</td>
<td>姓名</td>
<td>性别</td>
<td>拟晋职务</td>
<td> 外语语种</td>
<td>专业理论</td>
<td> 实践技能</td>
<td>论文成果</td>
<td>录入/修改</td>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
$sql1="SELECT * FROM dbrycj where pjry='".$_SESSION['username']."' and name='".$row['name']."'";
$result1=mysql_query($sql1,$link);
$rownum1=mysql_num_rows($result1);
if ($rownum1==0) {
echo "<td>"."未录入"."</td>";
}
else
{
echo "<td>"."录入"."</td>";
}
echo "<td>".$xh."</td>";
echo "<td>" . $row['dw'] . "</td>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['xb'] . "</td>";
echo "<td>" . $row['njzw'] . "</td>";
echo "<td>" . $row['wyyz'] . "</td>";
//echo "<td>" . $row['date'] . "</td>";
//$row=$row['date'];
echo "<td><input type=text name=zyll[$xh]></td>";
echo "<td><input type=text name=sjjn[$xh]></td>";
echo "<td><input type=text name=lwcg[$xh]></td>";
//echo "<td><a href='edit.php'>编辑</a></td>";
echo "<td><a href='delete.php' onclick=\"return confirm('确定删除吗?'); \">录入/修改</a></td>";
$xh++;
echo "</tr>";
}
echo "</table></form>";
echo "<td><input type=submit name=button></td>";
就点击 提交按钮 根本不跳转 展开
<table border='2' id=\"oTable\">
<tr>
<td>是否录入</td>
<td>序号</td>
<td>单位</td>
<td>姓名</td>
<td>性别</td>
<td>拟晋职务</td>
<td> 外语语种</td>
<td>专业理论</td>
<td> 实践技能</td>
<td>论文成果</td>
<td>录入/修改</td>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
$sql1="SELECT * FROM dbrycj where pjry='".$_SESSION['username']."' and name='".$row['name']."'";
$result1=mysql_query($sql1,$link);
$rownum1=mysql_num_rows($result1);
if ($rownum1==0) {
echo "<td>"."未录入"."</td>";
}
else
{
echo "<td>"."录入"."</td>";
}
echo "<td>".$xh."</td>";
echo "<td>" . $row['dw'] . "</td>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['xb'] . "</td>";
echo "<td>" . $row['njzw'] . "</td>";
echo "<td>" . $row['wyyz'] . "</td>";
//echo "<td>" . $row['date'] . "</td>";
//$row=$row['date'];
echo "<td><input type=text name=zyll[$xh]></td>";
echo "<td><input type=text name=sjjn[$xh]></td>";
echo "<td><input type=text name=lwcg[$xh]></td>";
//echo "<td><a href='edit.php'>编辑</a></td>";
echo "<td><a href='delete.php' onclick=\"return confirm('确定删除吗?'); \">录入/修改</a></td>";
$xh++;
echo "</tr>";
}
echo "</table></form>";
echo "<td><input type=submit name=button></td>";
就点击 提交按钮 根本不跳转 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询