织梦如何调用会员详细信息
在include/extend.func.php
在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;}
比如要调用对应会员的QQ信息
插入
{dede:field.mid function="GetMemberInfos('qq',@me)"/}
即可