Simple php statement, I can't get it to work!

Posted by eberswine on Stack Overflow See other posts from Stack Overflow or by eberswine
Published on 2010-04-24T00:50:11Z Indexed on 2010/04/24 0:53 UTC
Read the original article Hit count: 177

Filed under:

How to get $schedule = true and $schedule = true to work???

I know this is easy and I'm overlooking something simple!

 else {
     if($schedule){

      $where[] = 'date > '.(time() + $config_date_adjust * 60 - 432000);

    }

    else{

      $where[] = 'date < '.(time() + $config_date_adjust * 60);

    }

    $schedule = false;   }

    else {
     if($schedule2){

      $where[] = 'date > '.(time() + $config_date_adjust * 60 - 86400);

    }

    else{

      $where[] = 'date < '.(time() + $config_date_adjust * 60);

    }

    $schedule2 = false;   }

© Stack Overflow or respective owner

Related posts about php