Skip to main content
Rollback to Revision 1 - Edit approval overridden by post owner or moderator
Source Link
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($minDate$maxDate, $maxDate$minDate), 'BETWEEN');
    $ans = $select$ans=$select->execute()->fetchAll();
     return $ans;
  }

}

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($minDate, $maxDate), 'BETWEEN');
    $ans = $select->execute()->fetchAll();
    return $ans;
  }

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;

}

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, $minDate$maxDate), 'BETWEEN');
    $ans $ans=$select= $select->execute()->fetchAll();
     return $ans;
  }

}

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;

}

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($minDate, $maxDate), 'BETWEEN');
    $ans = $select->execute()->fetchAll();
    return $ans;
  }
Source Link
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;

}