Public feed #722696

Someone

public text v1 · immutable
Raw Edit
·published 2007-10-02 07:25 UTC
rendered paste body
<?php
  $sql = "SELECT n.nid, n.title FROM {node} n WHERE n.type = 'blog' AND n.status = 1";
  $results = db_query($sql);
  print $results;
?>

The above code is in a block and it's returning things like this "Resource id #149" when it should be returning the titles of blog posts.