开发人员,我正在开发学校管理系统,将很多数据存储在数据库中,并且还能够获取表中的每个数据
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>Sr.</th>
<th>Pic</th>
<th>Registration Number</th>
<th>Name</th>
<th>Father Name</th>
<th>Class</th>
<th>CNIC</th>
<th>More</th>
</tr>
</thead>
<tbody>
<?php $q=mysqli_query($dbc,"SELECT * FROM students WHERE class='Play Group'");
if ($r=mysqli_num_rows($q)>0 )?>
<?php while ($r=mysqli_fetch_array($q)): ?>
<tr>
<td><?=$r['students_id']?></td>
<td><img width="40" class="img img-circle" src="uploads/<?=$r['students_pic'];?>" alt=""></td>
<td>LSPS-10<?=$r['students_reg']?></td>
<td><?=$r['students_name']?></td>
<td><?=$r['fname']?></td>
<td><?=$r['class']?></td>
<td><?=$r['cnic']?></td>
<td>
<a class="label label-primary" data-toggle="modal" data-target="#modal-id">View</a>
<div class="modal fade" id="modal-id">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Full Record</h4>
</div>
<div class="modal-body">
<h1>Ok</h1>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</td>
</tr>
<?php endwhile ?>
</tbody>
</table>
但是我现在想获取该数据的某些列,我想获取模式中动态创建的其余列,换句话说,我获取表列中的一半数据,而获取模态中表中的其他数据,我的问题是如何以模态平行于数据的方式获取列的其余部分,这意味着当有人触发模态时,将获取所有已单击的id模态的数据,而该数据已被获取。