找到member目录下archives_do.php这个文件,然后找到以下位置: /*-----------------function delStow()删除收藏------------------*/ if($dopost==delStow){ CheckRank(0,0); $type=empty($type)?sys:trim($type); $ENV_GOBACK_URL=e
/*-----------------function delStow()删除收藏------------------*/
if($dopost=="delStow"){ CheckRank(0,0); $type=empty($type)? 'sys' : trim($type); $ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL']) ? "mystow.php" : $_COOKIE['ENV_GOBACK_URL']; $dsql->ExecuteNoneQuery("DELETE FROM dede_member_stow WHERE aid='$aid ' AND mid='".$cfg_ml->M_ID."' AND type='$type';"); //更新用户统计 $row = $dsql->GetOne("SELECT COUNT(*) AS nums FROM `dede_member_stow` WHERE `mid`='".$cfg_ml->M_ID."' "); $dsql->ExecuteNoneQuery("UPDATE dede_member_tj SET `stow`='$row[nums]' WHERE `mid`='".$cfg_ml->M_ID."'"); ShowMsg("成功删除一条收藏记录!",$ENV_GOBACK_URL); exit();}
把 $dsql->ExecuteNoneQuery("DELETE FROM dede_member_stow WHERE aid='$aid ' AND mid='".$cfg_ml->M_ID."' AND type='$type';");
这条语句中的 AND mid='".$cfg_ml->M_ID."' AND type='$type'删掉,收藏信息可以删除了。
【文章转自阿里云服务器代理商 http://www.558idc.com/aliyun.html 复制请保留原URL】