Default in switch dont work?

why my default dont work on below switch?

switch ($mohlat) {
    case 'saturday':
      if ($today=="sunday" || $today=="monday" || $today=="tuesday" || $today=="Wednesday" || $today=="thursday" || $today=="friday") { 
        ?>
          <input type="submit" class="btn btn-danger" value="متاسفانه مهلت رزرو غذا تمام شده است" name="btnreserv" disabled="true">
        <?php
        


      }

      break;
      case 'sunday':
         if ( $today=="monday" || $today=="tuesday" || $today=="Wednesday" || $today=="thursday" || $today=="friday") {
        ?>
            <input type="submit" class="btn btn-danger" value="متاسفانه مهلت رزرو غذا تمام شده است" name="btnreserv" disabled="true">
        <?php
        


      }
      
      break;
      case 'monday':
         if ($today=="tuesday" || $today=="Wednesday" || $today=="thursday" || $today=="friday") {
        ?>
            <input type="submit" class="btn btn-danger" value="متاسفانه مهلت رزرو غذا تمام شده است" name="btnreserv" disabled="true">
        <?php
        


      }
      
      break;
      case 'tuesday':
         if ( $today=="Wednesday" || $today=="thursday" || $today=="friday") {
        ?>
          <input type="submit" class="btn btn-danger" value="متاسفانه مهلت رزرو غذا تمام شده است" name="btnreserv" disabled="true">
        <?php
        


      }
      
      
      break;
      case 'Wednesday':
         if ($today=="thursday" || $today=="friday") {
        ?>
          <input type="submit" class="btn btn-danger" value="متاسفانه مهلت رزرو غذا تمام شده است" name="btnreserv" disabled="true">
        <?php
        


      }
      
      
      break;
      case 'thursday':
         if ($today=="friday") {
        ?>
            <input type="submit" class="btn btn-danger" value="متاسفانه مهلت رزرو غذا تمام شده است" name="btnreserv" disabled="true">
        <?php
        


      }
      
      
      break;
      case 'friday':
           ?><input type="submit" class="btn btn-success" value="رزرو غذا" name="btnreserv"><?php

      break;
    
    default:
     ?><input type="submit" class="btn btn-success" value="رزرو غذا" name="btnreserv"><?php
      break;
  }
  


}

cases works fine but when any of case is no run default is dont run too…and i havnt any error,

,Worked,

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.