或简单一个表:
公司地址: [field:mid runphp=yes] $tsql = new DedeSql(false); $mid = ''; $tsql->SetQuery("Select mid,company,address From member_companywhere mid='@me'"); $tsql->Execute('t'); while($row = $tsql->GetArray('t',MYSQL_ASSOC)) { $mid = $row['address']; } @me=$mid; [/field:mid]