Skip to main content
3 of 3
Rollback to Revision 1 - Edit approval overridden by post owner or moderator
vijoy
  • 111
  • 2
  • 14

My answer

public static function load($entry = array()) {
  $maxDate = \Drupal::request()->query->get('set_start_date');
  $minDate = \Drupal::request()->query->get('set_end_date');

 $select = db_select('pastpayments', 'x');
 $select->fields('x');
 $select->condition('paiddate', array($maxDate, $minDate), 'BETWEEN');
     $ans=$select->execute()->fetchAll();
     return $ans;

}

vijoy
  • 111
  • 2
  • 14