+ 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>
1 Answer
0
Simply echo out a CSS class. Clean and good.

![Private [GER] - avatar](https://blob.sololearn.com/avatars/db6dd39f-0de6-4630-a927-038bce7ec035.jpg)



