为你守候
测试进行了一个小时……现在代码如下(加了查询结果判断条件):
“$chaxun=$db->get_one("SELECT * FROM pw_threads where fid='48' and frommob='1'");
$tid=$chaxun['tid'];
$shijian=$tdtime-86400*6;//保留n+1天的主题
if($chaxun && $shijian>$chaxun['postdate']){
$db -> update("UPDATE pw_threads set fid='28' where tid=$tid");
echo"时间戳:{$shijian} tid:{$tid}";
}else{
echo"I am sorry!please try again.";
}”(引用内容)