织梦如何调用会员详细信息:
在include/extend.func.php
function GetMemberInfos($fields,$mid){
global $dsql;
if($mid <= 0){
$revalue = "Error";
}
else{
$row=$dsql->GetOne("sele ct * from dede_member_person where mid ='{$mid}'");
if(!is_array($row)){ $revalue = "Not user";
}
else{ $revalue = $row[$fields];
} }
return $revalue;
}
调用代码:
{dede:field.mid function="GetMemberInfos('qq',@me)"/}