database table node

Events happening in the community are now at Drupal community events on www.drupal.org.
color's picture

Need help on database access, problem solved.

Our website need to read one type of nodes body directly for high performance. The code is as following:
include("opendatabase.php");
$result = mysql_query ("SELECT body FROM node_revisions WHERE uid = 1 AND title = 'test1' LIMIT 1 ");
$row = mysql_fetch_assoc ($result);
print_r ($row["body"]);

mysql_close();

It doesn't run drupal_bootstrap. It has no relation with the drupal except read its database table.

Read more
Subscribe with RSS Syndicate content