我有表“登錄”,并使用 php 將 mysql 中的數(shù)據(jù)列出到 html 表中。<table class="table"> <thead class="thead-dark"> <tr> <th scope="col">Sl.NO</th> <th scope="col">Name</th> <th scope="col">Username</th> <th scope="col">Mobile</th> <th scope="col">Join Date</th> <th scope="col">Action</th> </tr> </thead> <tbody> <?php if($req_result->num_rows > 0) { while($req_row = $req_result->fetch_assoc()) { $i+=1; $reqmail = $req_row['username']; $reqmobile = $req_row['id']; $reqname = $req_row['name']; $join_date = $req_row['join_date']; ?> <tr> <th scope="row"><?php echo $i ;?></th> <td><?php echo $reqname ;?></td> <td><?php echo $reqmail ;?></td> <td><?php echo $reqmobile ;?></td> <td><?php echo $join_date ; ?></td> </tr> <?php } } ?> </tbody> </table>我想在單擊時(shí)訪問(wèn)該按鈕值,并處理另一個(gè)查詢(xún)。tbale“登錄”有多個(gè)數(shù)據(jù)。我該怎么做?
從表中訪問(wèn)點(diǎn)擊事件數(shù)據(jù)
縹緲止盈
2021-10-21 10:34:58