2016-03-31 34 views
1

我的编辑按钮没有工作结果lbank,看起来是什么原因?我的编辑按钮不工作结果lbank,看起来是什么原因?

这是我 admn_account.php 按说应该带我到编辑部分,而不是带我到空白部分 和使用主要是包括由1个指数与其他人一样的东西要说救起来的PHP文件?

 <h2 class="form-signin-heading">Account Management</h2><hr /> 

<table class="table bg-dark"> 
    <thead> 
    <tr> 
     <th>#</th> 
     <th>First Name</th> 
     <th>Last Name</th> 
     <th>Middle Name</th> 
     <th>Address</th> 
     <th>Secret Question</th>   
     <th>Secret Answer</th> 
     <th>Email Address</th> 
     <th>Level of Access</th> 

    </tr> 
    </thead> 
    <tbody> 


<?php 
     $stmt = $user_home->getUserList(); 

     if($stmt->rowCount()>0){ 

      foreach ($stmt as $row){ 

     ?> 
      <tr> 
      <th scope="row"><?echo $row->userID ?></th> 
      <td><?echo $row->userfirstName ?></td> 
      <td><?echo $row->userlastName ?></td> 
      <td><?echo $row->usermiddleName ?></td> 
      <td><?echo $row->userAddress ?></td> 
      <td><?echo $row->usersecretQuestion ?></td> 
      <td><?echo $row->usersecretAnswer ?></td> 
      <td><?echo $row->userEmail ?></td> 
      <td><?echo $row->usertype ?></td> 
      </td> 


      <form method="POST" class="userTransdoConfirm"> 
      <input type="hidden" value="<?echo $row->userfirstName?>" name="id"> 
      </form> 
      </td> </tr>  
     <? 
      } 
     } 

    ?> 
    </tbody> </table> 
</div> 
+0

http://pastebin.com/2hZ6U64R这是用于更新零件和活动的代码btw – rakisha42

+0

您的代码在哪里编辑? –

回答

0

只是胡乱出手,因为不是所有的代码存在,请尝试更改隐藏输入用户的ID。

<form method="POST" class="userTransdoConfirm"> 
    <input type="hidden" value="<?echo $row->userID?>" name="id"> 
</form> 
相关问题