我想check
在不重新加载页面的情况下每 4 秒更新一次 div。我怎么做?
<?php
include 'admin/db.php'; /*including database config*/
$result = mysql_query("SELECT * FROM player ORDER BY id");
while($row = mysql_fetch_array($result))
{?>
<div align = "center">
<table border = "1px">
<tr>
<th>Name</th>
<th>Run</th>
<th>Bowl</th>
<th>Strike Rate</th>
<th>4's</th>
<th>6's</th>
</tr>
<tr>
<div id = 'check'>
<td><?=$row['name'];?></td>
<td><?=$row['run'];?></td>
<td><?=$row['bowl'];?></td>
<td><?=$row['sr'];?></td>
<td><?=$row['numberofFours'];?></td>
<td><?=$row['numberofsixes'];?></td>
</div>
</tr>
</table>
</div>
<?php
}
mysql_close($con);
?>