PHP today / yesterday in forum
I'm showing latest activity on my forum, and I'm extracting "$mytime" from
SQL. And now I can't seem to figure this one out:
$dates = date(" d-m-y",$mytime));
if($dates == date('d-m-y')) {
$day_name = 'This day';
} else if();
$day_name = 'Another day';
}
echo "$day_name";
I can't figure out this one: } else if(); {
Is there any more problems in this code?
No comments:
Post a Comment