+ 1

Background color with php

I want to change the background color on different time intervals instead of echoing out strings. Who can help $date = date('i') ; If($date >=5 && $date<=25){ $y = "how are you" ; } elseif ($date >=26 && $date<=59){ $y = "hope you are good" ; } else { $y = "goodbye" ; } <html> . . <div><?php echo $y; ? ></div> </html>

21st Dec 2017, 9:54 AM
Chinedu Chiaju
Chinedu Chiaju - avatar
1 Odpowiedź
0
Simply echo out a CSS class. Clean and good.
1st Jan 2018, 12:25 PM
Private [GER]
Private [GER] - avatar