$limit = 10;

$query =”SELECT * FROM {node} n;

$query_count =”SELECT count(*) FROM {node} n;

$result = pager_query($query, $limit, 0, $query_count);

//display pagination

theme(‘pager’,NULL,$limit,0);

Advertisements