Jump to content

Playing time


piney

Recommended Posts

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??
Link to comment
https://forums.phpfreaks.com/topic/14748-playing-time/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.