1

I need to satisfy 3 different conditions in an if/else statement that require_onces a file in a specific folder My problem is that when my page is loaded my function satisfy only two conditions. I'd like to know if there's a better method to define this function:

     if ($sel_year <= '2016') {
          if ($sel_month >= '09') {
              require_once 'tab2.php';
              if ($sel_month <= '08') {
                  require_once 'tab1.php';
              } else require_once 'tab3.php';
          }
     }

Thank you so much for your help

tyteen4a03
  • 1,812
  • 24
  • 45
  • `elseif ($sel_month <= '08') {` –  Jan 03 '17 at 21:52
  • Aside from attempting to compare strings with integer comparators, what do you mean by "satisfy 3 different conditions"? Exactly which conditions should be satisfied? – tyteen4a03 Jan 04 '17 at 04:33

0 Answers0