<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

dedecms5.7织梦调用文档评论次数的办法

时间:2020-12-21

建站解决办法

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();
}

只需要复制以上内容到你想调用的地方即可。 

0
首页
案例
关于
联系