日期:2014-05-17  浏览次数:20495 次

哪位大哥帮我看下这个实例为什么运行时不能达到预期的效果
conn\0.ini<tr>
    <td height="25" colspan="4" align="center"><span class="STYLE6">普通用户</span></td>
  </tr>
<?php 
$query="select * from tb_administrator ";
$result=mysql_query($query);
while($myrow=mysql_fetch_array($result)){
?>
  <tr>
    <td width="116" align="center"><span class="STYLE6"><?php echo $myrow[user];?></span></td>
    <td width="97" align="center"><span class="STYLE6"><?php echo $myrow[pass];?></span></td>
    <td height="25" colspan="2" align="center"><span class="STYLE6"><?php echo $myrow[qx];?></span></td>
  </tr>
<?php }?>
conn\1.php
<tr>
    <td height="25" colspan="4" align="center"><span class="STYLE6">管理员</span></td>
  </tr>
<?php 
if($Submit==true){
$query=mysql_query("insert into tb_administrator (user,pass,qx)values('$users','$passs','$pxs')");
if($query==true){
echo "<script>alert('普通用户创建成功!'); history.back();</script>";
}
}
$query="select * from tb_administrator ";
$result=mysql_query($query);
while($myrow=mysql_fetch_array($result)){
?>
  <tr>
    <td align="center"><span class="STYLE6"><?php echo $myrow[user];?></span></td>
    <td align="center"><span class="STYLE6"><?php echo $myrow[pass];?></span></td>
    <td height="25" colspan="2" align="center"><span class="STYLE6"><?php echo $myrow[qx];?></span></td>
  </tr>
<?php }?>
  <form name="form1" method="post" action="index.php">
  <tr>
    <td align="center"><input name="users" type="text" id="users" size="10"></td>
    <td align="center"><input name="passs" type="text" id="passs" size="10">
      <input name="pxs" type="hidden" id="pxs" value="0"></td>
    <td height="25" colspan="2" align="center"><input name="Submit" type="submit" value="创建"></td>
  </tr>
  </form>
conn\2.ini
<tr>
    <td height="25" colspan="4" align="center"><span class="STYLE6">超级管理员</span></td>
  </tr>
<tr>
  <td align="center" class="STYLE6">用户名</td>
  <td align="center" class="STYLE6">密码</td>
  <td width="127" height="25" align="center" class="STYLE6">权限</td>
  <td width="137" align="center" class="STYLE6">&nbsp;</td>
</tr>
<form name="form2" method="post" action="index_ok.php">
<tr>
    <td align