$key = 1 ;
while( list( $title , $cid , $pid , $num ) = $xoopsDB->fetchRow( $rs ) ) {
$cats[ $key ] = array( 'cid' => intval( $cid ) , 'pid' => intval( $pid ) ,
'next_key' => ++ $key $key + 1 , 'depth' => 0 , 'title' => $myts->makeTboxData4Show( $title ) ,
'num' => intval( $num ) ) ;
$key ++ ;
}
$sizeofcats = $key ;