我有从这样的数据库生成表的代码:
<?
include 'conndb.php';
?>
<button id="ps">PŚ</button>
<button id="lgp">LGP</button>
<table align=center border=1 cellspacing=0 cellpadding=2 style=\"color: brown;\">
<tr>
<td width=25 align=\"center\">Lp.</td>
<td width=570 align=\"left\">Nazwisko i imię</td>
<td width=50 align=\"center\">Pkt</td>
</tr>
<? ///content
$sql55="SELECT * FROM `grobar_IDs` WHERE `ps_m_s`!=0 AND `kategoria`=1 ORDER BY `ps_m_s` DESC LIMIT 5";
$result55=mysql_query($sql55);
$lp0 = 1;
while($s = mysql_fetch_assoc($result55)) {
echo "<tr><td width=25 align=\"center\">".$lp0++."</td><td width=570 align=\"left\">".$s['nazwisko']." ".$s['imie']."</td><td width=50 align=\"center\">".$s['ps_m_s']."</td></tr>";
}
///end content
?>
</table>
我希望在使用这些按钮后更改///content
和///end content
之间的内容 - 当然无需重新加载页面。我怎么能这样做?