Posted By

grgcnnr on 06/03/11


Tagged

drupal


Versions (?)

select all nids of node type


 / Published in: PHP
 

  1. $result = db_query("SELECT nid FROM {node} WHERE type IN (:type)", array(
  2. ':type' => array('feed_item'),
  3. ));
  4.  
  5.  
  6. foreach ($result as $record) {
  7. ...
  8. }

Report this snippet  

You need to login to post a comment.