I have a problem with this code I'm using:
Basically, I want the script to display the private message if the administrator is logged in. If not logged in, then display the message This message has been marked private. You must log in as an administrator to view it.. $isprivate is the variable to see if the message is private. i.e 1=yes, 0=no
I've been trying to make this work for a few days already, and I just can't get it.
Any help will be greatly appreciated.
Thanks.
-CALV1N
Code:
//if (!empty($_COOKIE['$cookiename'])) {
if ($isprivate != "1") {
$message = nl2br($message);
echo "$message";
} else {
echo "<i>This message has been marked private. You must log in as an administrator to view it.</i>";
}
Basically, I want the script to display the private message if the administrator is logged in. If not logged in, then display the message This message has been marked private. You must log in as an administrator to view it.. $isprivate is the variable to see if the message is private. i.e 1=yes, 0=no
I've been trying to make this work for a few days already, and I just can't get it.
Any help will be greatly appreciated.
Thanks.
-CALV1N