【发布时间】:2015-04-19 17:34:13
【问题描述】:
很抱歉让大家感到困惑我已经制作了大量的脚本,但似乎我知道如何解释我这次真正想要完成的事情:)
chat.php
<?PHP
require('connect.php');
$sqlmessages = mysql_query("SELECT * FROM chat");
$oldmessages = mysql_num_rows($sqlmessages);
echo $oldmessages;
//so It displays 43 from database NEXT :)
m.php
<?PHP
require('connect.php');
$sqlmessages = mysql_query("SELECT * FROM chat");
echo mysql_num_rows($sqlmessages);
//this displays also 43 messages ... now As for this page I don't care what happens to it and where its displayed as long as the chat.php is not affected by it this page is a check if this will go to more or less than the value of the chat.php if there is difference then send some kind of code to refresh that page
【问题讨论】:
-
这似乎与您之前的问题重复,为此我给了您一些指示。这个新问题的目的是什么?
-
好点,这个问题是基于一个新的理论与会话女巫是不同的
-
会话没有帮助。如果你想在 JavaScript 中找出是否有新的行可用而不刷新页面,你需要 AJAX。
标签: javascript php jquery mysql ajax