Showing posts with label drupal 7 count query. Show all posts
Showing posts with label drupal 7 count query. Show all posts

Sunday, December 12, 2010

Get the row count in Drupal 7

<?php

$querystring = db_select('table1')
->fields('users')
->execute()
->rowCount();

?>