POST TIME:2017-10-25 10:38
{dede:field.typeid runphp='yes'}$ID = @me;$sql = "SELECT * FROM `dede_arctype` WHERE id=$ID";$query = mysql_query($sql);$row=mysql_fetch_array($query);$relID = "$row[reid]";if($relID == 0) {@me = $row[typename];}else{$sql = "SELECT `typename` FROM `dede_arctype` WHERE id=$relID";$query = mysql_query($sql);$row=mysql_fetch_array($query);@me = $row[typename];}{/dede:field.typeid}
{dede:field.typeid runphp='yes'}$ID = @me;global $dsql;$sql = "SELECT * FROM `dede_arctype` WHERE id=$ID";$dsql->Execute('a', $sql);$row = $dsql->GetArray('a');$relID = "$row[reid]";if($relID == 0){@me = $row[typename];}else{$sql = "SELECT `typename` FROM `dede_arctype` WHERE id=$relID";$dsql->Execute('t', $sql);$row = $dsql->GetArray('t');@me = $row[typename];}{/dede:field.typeid}