samedi 19 septembre 2015

if else issue please give a hand

Hello guys we want to put 2 else after "if" we know it won't work but what is the soluation in this case ??? please be aware that we must put these 2 commands to work with each other

the 2 else in the bottom of the code :

            <?php

if (isset($value['custom']) && ($value['custom'] != '')) {
    $status = $value['custom'];
} else {
    if ($value['weekend'] === '1') {
        if (($today == 5) || ($today == 7)) {
            $status = 'Close';
        } else {
          if (($time >= strtotime($value['pre'])) && ($time < strtotime($value['after']))) {
                    $status = 'pre';
                } else {
                    $status = 'After';
                 } else {  if (($time >= strtotime($value['opening'])) && ($time < strtotime($value['closing']))) {
                $status = 'Open';
            } else {
                $status = 'Close';``

Aucun commentaire:

Enregistrer un commentaire