select all nids of node type


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.