I typed in this code; Easiest code in the world huh and yet it doesn’t work. I have tried everything and does it work? NOPE. I’ve spent around 8 hours on this and all it ever prints is ‘Good Evening’ and all the time I was thinking it was my fault, but no. It’s this flipping plugin not working properly!
$hour = date(‘G’);
echo “$hour “;
if ($hour >= 0 && $hour <= 11)
echo ‘Good morning ‘;
else if ($hour >=12 && $hour <=17)
echo ‘Good afternoon ‘;
else if($hour >=18 && $hour<= 24)
echo ‘Good evening ‘;
- The topic ‘Hours and hours wasted – Plugin DOESN'T WORK’ is closed to new replies.