Dedecms添加一个简单的自定义函数
function GetMemberName($str){ $dsql = new Dedesql(false); $row = $dsql->GetOne("SELECT uname FROM `ddmx_member` WHERE mid = '$str' "); return $row[uname]; }
function GetMemberName($str){ $dsql = new Dedesql(false); $row = $dsql->GetOne("SELECT uname FROM `ddmx_member` WHERE mid = '$str' "); return $row[uname]; }