[support] Inserting php block snippet into a standard node

Jason Flatt drupal at oadaeh.net
Fri May 4 12:43:43 UTC 2007


On Friday May 4 2007 3:30 am, Neil: esl-lounge.com wrote:
> <?php
> global $user;
> $result=db_query("SELECT dru_users.uid, dru_users.init FROM dru_users WHERE
> (dru_users.uid = $user->uid)"); while ($u = db_fetch_object($result)) {
> $items[]=l($u->init, "user/" . $u->uid);
> }
> return theme('item_list',$items);
> ?>

-- 
Jason Flatt
http://www.oadaeh.net/
Father of Six:  http://www.flattfamily.com/ (Joseph, 13; Cramer, 11; Travis, 
9; Angela; Harry, 5; and William, 12:04 am, 12-29-2005)
Linux User:     http://www.kubuntu.org/
Drupal Fanatic: http://drupal.org/


More information about the support mailing list