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