[support] PHP custom code in drupal block / node

Abraham Williams 4braham at gmail.com
Sat Apr 18 13:25:17 UTC 2009


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?
>
> Do I need to include setting.php file ?
>
>
>>
>>
>> Nikhil Kala wrote:
>>
>>> Hello All,
>>>
>>> This might be very easy question for some of you, I want to display
>>> database values into the php block / node
>>> How I can do this?
>>>
>>> Can I user normal php coding same in drupal block OR I need to do any
>>> extra steps for it.
>>>
>>>
>>>
>>> Warm Regards,
>>> Nikhil Kala
>>> http://www.nikhilkala.com
>>>
>>>
>>>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>



-- 
Abraham Williams | http://the.hackerconundrum.com
Hacker | http://abrah.am | http://twitter.com/abraham
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Madison, Wisconsin, United States
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/support/attachments/20090418/35388eb9/attachment.htm>


More information about the support mailing list