Sometimes, there will be a need for you to integrate Drupal content to a non-Drupal content. For instance, the non-Drupal content is in PHP and you want to have the same menu from Drupal to appear on your non-Drupal site. You can do that using the Drupal Services module and using PEAR’s XML-RPC2 Library. (more…)
Drupal
Displaying the total number of times the node has been accessed
Seriously, you do not need to manually query SQL statements just to get how many times the node has been accessed in Drupal. First, make sure that the Statistics module is enabled. Then, all you need to do is write this piece of code:
$node_stats = array();
$node_stats = statistics_get($node->nid);
print $node_stats['totalcount'];
?>