[support] PHP custom code in drupal block / node

Stefan Borchert stefan at borchert.cc
Sat Apr 18 13:30:21 UTC 2009


Abraham Williams schrieb:
> Take a look at: http://api.drupal.org/api/function/db_query/6
> 
> On Sat, Apr 18, 2009 at 07:40, Nikhil Kala <writeme at nikhilkala.com> wrote:
> 
>> On Sat, Apr 18, 2009 at 5:27 PM, garyl <lists at luminosity.co.uk> wrote:
>>
>>> normal php code in <?php ?> tags is fine
>> But if I want to display the list of the user registered with the site, I
>> need to fetch the values from the users table. In that case how do I connect
>> to the database first?

Or have a look at the handbooks [1].

  Stefan

[1] http://drupal.org/node/21867


More information about the support mailing list