我想从链接中获取 id 值,因为它不会改变:
<?php $se = mysql_query("select * from tee") or die(mysql_error());
while($row = mysql_fetch_object($se)){
echo'<a class="link" href="?id=" class="big-link" data-reveal-id="m'.$row->id.'">
'.$row->id.'
</a>'; }
?>
<?php
$se1 = mysql_query("select * from tee") or die(mysql_error());
while($row1 = mysql_fetch_object($se1)) {
echo '<div id="m'.$row1->id.'" class="reveal-modal">
<h1>Reveal Modal Goodness</h1>
<p>This is a default modal in all its glory, but any of the styles here can easily be changed in the CSS.</p>
<a class="close-reveal-modal">×</a>
</div>
';}?>
第一个 div 是出现的数字,第二个 div 是灯箱内容
我想从链接中获取 id 值,因为它不会改变