This script does not work properly. It seems that the values have to be modified "before" to integer. As I don´t have a clou how to do this: Can anyone help me to adjust the script? Thank you very much for your help.
<?php
if(date("G" < 11) {$a="<h1><b>Good morning and welcome!</b></h1>";}
if(date("G" <= 18 && date("G"
>= 11) {$a='<h1><b>ood day and welcome!</b></h1> ';}
if(date("G" >= 1
{$a='<h1><b>Good evening and welcome!</b></h1> ';} echo $a;
?>
This script does not work properly. It seems that the values have to be modified "before" to integer. As I don´t have a clou how to do this: Can anyone help me to adjust the script? Thank you very much for your help.
<?php
if(date("G") < 11) {$a="<h1><b>Good morning and welcome!</b></h1>";}
if(date("G") <= 18 && date("G") >= 11) {$a='<h1><b>ood day and welcome!</b></h1> ';}
if(date("G") >= 18) {$a='<h1><b>Good evening and welcome!</b></h1> ';} echo $a;
?>