Skip to content

Instantly share code, notes, and snippets.

@prateeksachan
Last active December 18, 2015 16:09
Show Gist options
  • Save prateeksachan/5809461 to your computer and use it in GitHub Desktop.
Save prateeksachan/5809461 to your computer and use it in GitHub Desktop.
<?php
function mod_get_search_iterator($from = 0) {
global $DB;
$sql = "SELECT id, modified FROM {mod_table} WHERE modified >= ? ORDER BY modified ASC";
return $DB->get_recordset_sql($sql, array($from));
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment