Need help on database access, problem solved.
Posted by color on January 16, 2011 at 11:21pm
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