|
用以下代码实现:
{dede:field.typeid runphp='yes'}
$ID = @me;
$sql = "SELECT * FROM `dede_arctype` WHERE id=$ID";
$query = mysql_query($sql);
$row=mysql_fetch_array($query);
$arcpic = "$row[arcpic,";
$typename = "$row[typename,";
if($arcpic == null)
@me = ''.$typename.'';
else @me = '
[img][/img]
';
{/dede:field.typeid} |
|