Jump to content

SciFiSi

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by SciFiSi

  1. Thanks for taking a look at that for me, at least I've proven it's not me going mad and it's the fault of that stupid plugin!
  2. Ah, yes I see you added the <=24. I've copied and pasted your code and now I don't get any output at all. What is probably VERY worth mentioning is that I'm using a plugin for Wordpress ; http://wordpress.org/plugins/allow-php-in-posts-and-pages/ It's very possible that this plugin just doesn't work and if that's the case I'll be peeved. .
  3. Sorry, I can't see any difference - did you change the code in any way?
  4. This should be the easiest thing in the world, but it just does not and WILL not work. I've spent hours and hours on this and I just do NOT understand what's wrong with this code can someone - anyone please please help and explain what I'm doing wrong!? $hour = date('G'); echo "$hour "; if ($hour >= 0 && $hour <= 11) { echo 'Good morning '; } else if ($hour >=12 && $hour <=17) { echo 'Good afternoon '; } else ($hour >=18) { echo 'Good evening '; } All it ever prints out is Good evening! WTF!
×
×
  • 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.