- Patch #829152 by nenne: database abstraction layer db_query_range() example is wrong.
parent
35dde8e3b5
commit
ac63fa94b5
|
@ -40,7 +40,7 @@
|
||||||
* one would instead call the Drupal functions:
|
* one would instead call the Drupal functions:
|
||||||
* @code
|
* @code
|
||||||
* $result = db_query_range('SELECT n.nid, n.title, n.created
|
* $result = db_query_range('SELECT n.nid, n.title, n.created
|
||||||
* FROM {node} n WHERE n.uid = :uid', array(':uid' => $uid), 0, 10);
|
* FROM {node} n WHERE n.uid = :uid', 0, 10, array(':uid' => $uid));
|
||||||
* foreach($result as $record) {
|
* foreach($result as $record) {
|
||||||
* // Perform operations on $node->title, etc. here.
|
* // Perform operations on $node->title, etc. here.
|
||||||
* }
|
* }
|
||||||
|
|
Loading…
Reference in New Issue