【发布时间】:2018-10-31 01:25:02
【问题描述】:
当我点击每行表格中的查看按钮时如何显示详细数据(使用弹出窗口)?
按钮代码
echo '<button href="student.php?id="'.$row['mactrixNo'].'" onclick=document.getElementById("id02").style.display="block">View</button>';
弹出代码
<div id="id02" class="logform">
<table border="1" class="tg w-100">
<tr>
<?php if(isset($_GET['id'])){
$query='select *
from student
where mactrixNo="'.$_GET['id'].'"';
}
?>
弹出时我无法获取“id”
【问题讨论】:
-
你在使用引导 css/js 吗?
-
是的,使用引导程序
-
好的,我会添加答案
标签: javascript php html