English 中文(简体)
新员额通知PHP和MySQL
原标题:New posts notification with PHP and MySQL

I know how to implement things in PHP and MySQL, but now i have a little thinking problem.

有一个论坛网站。 每一用户都可以提出问题(如排位)。 因此,当用户(在2天之后或某天之后)看到(信息或警示......)他有新职位时,怎么办?

Do you know what i mean? I can t put that all into a database, I think that s a little bit server-heavy??

感谢。

最佳回答

如果我正确回顾,这里是简单的机械论坛如何运作。

每个用户都有一个记录,显示他们被点击。 在被点击时,记录为这一深层的顶点。

发 言 身份识别器是自动加固的焚化器,任何新电文都将有一个比以前多的信息。

因此,当用户看看看透镜清单时,SMF会看到,目前透镜中的最高信号识别码是否大于用户阅读记录中储存的信息。 如果有较大的数据,就会有新的记录,而且透镜会得到“新信息”。 否则,“无新电文”。 而且,如果没有阅读记录,用户就从未去过透视线,而是收到“新信息”。

当用户实际点击胎面时,阅读记录再次以最高电文ID更新。

问题回答

请在该网站上储存用户的<代码>持久有效时间。 每当用户看一线或一页时,都会更新其价值。 他们下一次回来,对所有在<代码>后设立的员额提出询问,并提出联系清单。

这意味着,你只需在用户桌上增加一个领域,再增加一个领域。 这个新领域有一个简单的日期,你可以据此确定某些职位的新情况。

页: 1

什么时候了?

Magic Land?^_^

仅将其储存在数据库中,每一行各加一段时间。





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签