【发布时间】:2011-06-21 14:21:04
【问题描述】:
我想为用户提供一个网站,当用户输入一些东西时,我会把它放到数据库中。但是当用户访问.php 时,该命令不会执行。我想在一段时间后执行....这是这样的......
10:00 am
User makes the request, and saying that the record will write in the DB one hour later.
11:00 am
The request execute, and the DB write a new record.
我该怎么做?另外,我想为用户添加取消请求的功能.....像这样:
10:00 am
User makes the request, and saying that the record will write in the DB one hour later.
10:30 am
User cancels the request.
11:00 am
Nothing won't execute.
对此有什么想法吗?谢谢。
【问题讨论】:
-
为什么会延迟?就不能直接把值写入数据库,加个时间戳,在等待期结束之前忽略所有太新的记录吗?