如何在無需加載頁面的情況下刷新計數。我嘗試了幾個jQuery和Ajax,但它不適合我。當用戶提交它收到的請求時,我也試過這個鏈接automatic reload of div container 1,但是當用戶在頁面打開時提交另一個請求時,它保持爲1,不會移動到2.與更新和完成相同。刷新Mysql計數,無需重新加載頁面
<tr>
<td style="width: 125px"><a href="received.php" target="Frame">Received</a></td>
<td style="width: 125px" align="center"><a href="received.php" target="Frame">
<?php
$result = mysql_query("SELECT COUNT(*) FROM requests WHERE status='received'");
while($row=mysql_fetch_array($result))
{
echo $row['COUNT(*)'];
}
?></td>
</tr>
我會給這個嘗試我沒有想到分離視圖和結果 – Donny 2014-10-29 20:16:39
謝謝你得到它的工作 – Donny 2014-10-30 16:22:30