建站解决办法
cmsxx_archives 添加postcount int(10) UNSIGNED default 0
然后打开plus\feedback.php 找到大约220左右
//保存评论内容
if($comtype == 'comments')
{
$arctitle = addslashes($title);
if($msg!='')
{
$inquery = "INSERT INTO `cmsxx_feedback`(`aid`,`typeid`,`username`,`arctitle`,`ip`,`ischeck`,`dtime`, `mid`,`bad`,`good`,`ftype`,`face`,`msg`)
VALUES ('$aid','$typeid','$username','$arctitle','$ip','$ischeck','$dtime', '{$cfg_ml->M_ID}','0','0','$feedbacktype','$face','$msg'); ";
//插入位置1
$rs = $dsql->ExecuteNoneQuery($inquery);
if(!$rs)
{
echo $dsql->GetError();
exit();
}
//插入位置2
插入位置1内容:
$rowc = $dsql->GetOne("Select count(*) as count from `cmsxx_feedback` where aid ='$aid'");
$pcount = $rowc ['count'];
$inquery2 = "update `cmsxx_archives` set postcount = '$pcount' where id = '$aid'";
插入位置2内容:
$rs = $dsql->ExecuteNoneQuery($inquery2);
if(!$rs)
{
echo $dsql->GetError();
exit();
}
只需要复制以上内容到你想调用的地方即可。
关键词:dedecms5.7,织梦,调用,文档,评论,次数,的,办法 标签:
更多资讯请收藏关注
网站模板(www.1yc.cn)