Hi
It gives me an parse error
This is my function:
function greetings(){
$agora = getdate();
if(( $agora["hours"] > 13 ) and ( $agora["hours"] < 19 ) )
{
$mensagem = "Boa tarde";
}
if ( ( $agora["hours"] > 18 ) and ( $agora["hours"] < 06 ) )
{
$mensagem = "Boa noite";
}
if ( ( $agora["hours"] > 06 ) and ( $agora["hours"] < 13 ) )
{
$mensagem = "Bom dia";
}
echo $mensagem;
}
and is it working in my tests. But when i try to use in the print mentioned before it gives me an parse error