if(!empty($maintable))
{
$dsql->ExecuteNoneQuery(" UPDATE `{$maintable}` SET click=click+1 WHERE {$idtype}='$aid' ");
}
if(!empty($mid))
{
$dsql->ExecuteNoneQuery(" UPDATE `dede_member_tj` SET pagecount=pagecount+1 WHERE mid='$mid' ");
}
这几行代码 即插入数据库的这两行 保存
<scriptsrc="[field:phpurl/]/contclick.php?view=yes&aid=[field:id/]&mid=[field:mid/]"type='text/javascript' language="javascript"></script>