2016-03-31 13 views
1

私の編集ボタンが動作しない結果lbank、原因は何ですか?私の編集ボタンがうまくいきませんlbank、原因は何ですか?

これはおそらく、それは代わりに空白部分 に私をとり、インクルードが唯一の他人のように1つのインデックスで何かを含め、ほとんど使用してPHPファイルを保存するように言うでしょう?、編集部に私を取る必要があり、私の admn_account.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> 
関連する問題