Hi Everyone:
I've written this simple bit of php code which echoes out a simple welcome message to the member when they login to their area:
$hour = date("H:i:s");
if ($hour > '6:00:00' && $hour <= '12:00:00') {
$greet = "a good morning to you";
}
if ($hour > '12:00:00' && $hour <= '17:00:00') {
$greet = "a good afternoon to you";
}
if ($hour > '18:00:00' && $hour <= '23:00:00') {
$greet = " a good evening to you";
}
if ($hour > '23:00:00' && $hour <= '6:00:00') {
$greet = "a good night to you";
}
$mysite_username = $_COOKIE["mysite_username"];
echo "<div align='center'><strong><font color='#0000FF' font size='2' face='Verdana'>";
echo "Hello $mysite_username, $greet and welcome to your area at The Garw Valley Digital Library ENJOY!!!";
echo "</font></strong></div>";
echo "<br><br>";
it was working prior to this but I'm getting the error, NOTICE: undefined variable error on line blah blah.
But I cannot see what the compiler complaining about the variable has bee defined and instantiated with a value, Im at a loss 😕
Please help.
Christian