$nid = 2; // node ID
$comments = db_select('comment')
->fields('comment', array('name','subject'))
->condition('nid', $nid, '=')
->execute()
->fetchAssoc(); //应该使用 fetchAll吧
foreach($comments as $comment) {
print your comments here
}
In Drupal 6 you can use the comment_render() ;
来自 https://stackoverflow.com/questions/7740026/drupal-7-get-comments-of-node