By CalonDdraig on
Hello,
Briefly my question is; what is the best practice for making an SQL call from within a page with the php input type?
What I'm trying to do doesnt justify a view... it's a simple inclusion of a database row in the homepage of my site - a page to which only one person has edit privileges anyway.
I know Drupal uses a database abstraction layer, but I was wondering if this is accessible from php code placed in a page?
Basicaly, what's the simplest way of making only one database call from a page type?
Thanks in advance,
~CalonDdraig
Comments
All Drupal functions (and
All Drupal functions (and enabled module functions) are accessible from PHP format pages. You can db_query() to your heart's content.
-----
Übercart -- One cart to rule them all.