If you were using SD's second block of code - you would simply drop the entire string that you posted into this bit...

Code
echo '';

...although I would have thought that if $hr > 12 it would be the afternoon period.

Is that right SD?


Last edited by driv; 01/21/2012 4:34 PM. Reason: Giz beat me to it....