我的最终解决办法:是由于这条新闻,在“phome_ecms_movie_index”中没有记录,因此,须要手动添加一条记录便可。我写了一个php来处理,代码以下:
$sql = $empire -> query("select * from {$dbtbpre}ecms_movie_check WHERE id not in (SELECT id FROM {$dbtbpre}ecms_movie_index)");
//查询缺乏index记录的记录
while ($r = $empire -> fetch($sql))//循环获取查询记录
{
//手动添加index记录
$empire -> query("insert into {$dbtbpre}ecms_movie_index(id,classid,checked,newstime,truetime,lastdotime,havehtml) values(".$r['id'].",".$r['classid'].",0,4294967295,4294967295,4294967295,1)");
$lastid = $empire -> lastid();
echo"刚插入的信息ID为:".$lastid;
}
$sql = $empire -> query("select * from {$dbtbpre}ecms_movie WHERE id not in (SELECT id FROM {$dbtbpre}ecms_movie_index)");
//查询缺乏index记录的记录
while ($r = $empire -> fetch($sql))//循环获取查询记录
{
//手动添加index记录
$empire -> query("insert into {$dbtbpre}ecms_movie_index(id,classid,checked,newstime,truetime,lastdotime,havehtml) values(".$r['id'].",".$r['classid'].",1,4294967295,4294967295,4294967295,1)");
$lastid = $empire -> lastid();
echo"刚插入的信息ID为:".$lastid;
}
echo"执行完毕";
db_close();
//关闭MYSQL连接
$empire = null;
//注消操做类变量
?>
<wiz_tmp_tag id="wiz-table-range-border" contenteditable="false" style="display: none;">php