View difference between Paste ID: d77Pe0u5 and YYJ763R7
SHOW: | | - or go back to the newest paste.
1-
$new_time = date("G:i", strtotime($game_time));
1+
I'm hoping someone can help with some syntax issues I'm having.  I want the text for $game_time to be red... when I try to insert HTML/CSS in to the echo below I seem to cause syntax errors.  Can someone help me with the proper formatting to make the game_time be red?
2
3-
I am able to convert the string $game_time to a datestamp with the above code ($new_time).  What I'm trying to do is have it such that if the time is after 20:00, then the text for $game_time will be red, and if it is before 20:00 then the text for $game_time will be green.   This is where I seem to be having the issues.  I'm getting lost in the whole mixture of quotation marks, etc.
3+
Thank you!
4
5-
Any help is greatly appreciated.  Below is the output line where I want the $game_time to be colored depending on the time:
5+