Community

Query sql and display result inside node

How do I run an sql query and display the result inside a node? In an overview page I need to display multiple select counts. I have the sql query ready and would like to know how to insert it.

I have searched the internet but my knowledge doesn't allow me to make this work.

Could anyone explain?

Thanks for your help.

Comments

I think following hook will

I think following hook will help

http://api.drupal.org/api/drupal/modules!node!node.module/function/node_view/7
http://api.drupal.org/api/drupal/modules!node!node.api.php/function/hook_node_view_alter/7

Thanks Jalpesh. I will have a

Thanks Jalpesh. I will have a look at it.

-----
Walter Swaenepoel
http://www.ambardesign.be