Jump to content

piney

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Posts posted by piney

  1. I have set $s8 - $s12 as names

    [code]<?php
    $loop = 8;
    $time = date('H') - 12;

    while ($loop <= 12) {
    if ($s['$loop'] == Lavish) && ($time == $loop) {
      echo "Lavish is playing now!";
    }
    elseif ($s['$loop'] == Lavish) && ($time > $loop) {
      echo "Lavish is played at $loop";
    }
    elseif ($s['$loop'] == Lavish) && ($time < $loop) {
      echo "Lavish is playing at $loop";
    }
    else echo 'Lavish is not playing this week';
      $loop++;
    }?>[/code]

    I get error "unexpected T_BOOLEAN_AND"
    any ideas??
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.