01 |
//获取*栏目名 |
02 |
function GetTopTypenameById($ id )
|
03 |
{ |
04 |
global $dsql; |
05 |
$row = $dsql->GetOne( "SELECT typename,topid FROM idea_arctype WHERE id= $id" );
|
06 |
if ($row[ 'topid' ] == '0' )
|
07 |
{ |
08 |
return $row[ 'typename' ];
|
09 |
} else {
|
10 |
$row1 = $dsql->GetOne( "SELECT typename FROM idea_arctype WHERE id= $row[topid]" );
|
11 |
return $row1[ 'typename' ];
|
12 |
} |
13 |
} |