Kumaresan Drupal Developer at Chennai
Please follow this blog if u feel the blog content is useful to you
Sunday, December 12, 2010
Standardized Query to select all records from a table in Drupal 7
$users = db_select('users')
->fields('users')
->execute()
->fetchAll();
foreach($users as $key=>$value){
echo $value->uid.",";
}
?>
outputs like : 0,1,..
1 comment:
Unknown
July 26, 2013 at 12:27 PM
It's good...Clean presentation
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
It's good...Clean presentation
ReplyDelete