建站解决办法 cmsxx_archives 添加postcount int(10) UNSIGNED default 0 然后打开plus\feedback.php 找到大约220左右 //保存评论内容 if($comtype == comments) { $arctitle = addslashes($title); if($msg!=) { $inquery = INSERT […]
建站解决办法
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();
}